CTRE Phoenix C++ 5.36.0-beta-1
Loading...
Searching...
No Matches
CANdleConfiguration.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
7#include <string>
8
9namespace ctre{ namespace phoenix{ namespace led{
10
11/**
12 * Configurables available to CANdle
13 *
14 * @deprecated This device's Phoenix 5 API is deprecated for removal in the
15 * 2027 season. Users should update to Phoenix 6 firmware and migrate to the
16 * Phoenix 6 API. A migration guide is available at
17 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html.
18 *
19 * If the Phoenix 5 API must be used for this device, the device must have 22.X
20 * firmware. This firmware is available in Tuner X after selecting Phoenix 5 in
21 * the firmware year dropdown.
22 */
24 /**
25 * What type of LEDs the CANdle controls
26 */
28 /**
29 * Brightness scalar for all LEDs controlled
30 */
31 double brightnessScalar {1.0};
32 /**
33 * True to turn off LEDs when Loss of Signal occurrs
34 */
35 bool disableWhenLOS {false};
36 /**
37 * True to turn off Status LED when CANdle is actively being controlled
38 */
40 /**
41 * The behavior of VBat output
42 */
44 /**
45 * True to turn off the 5V rail. This turns off the on-board LEDs as well.
46 */
47 bool v5Enabled {false};
48
49 /**
50 * Constructor
51 *
52 * @deprecated This device's Phoenix 5 API is deprecated for removal in the
53 * 2027 season. Users should update to Phoenix 6 firmware and migrate to the
54 * Phoenix 6 API. A migration guide is available at
55 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html.
56 *
57 * If the Phoenix 5 API must be used for this device, the device must have 22.X
58 * firmware. This firmware is available in Tuner X after selecting Phoenix 5 in
59 * the firmware year dropdown.
60 */
61 [[deprecated("This device's Phoenix 5 API is deprecated for removal in the 2027 season."
62 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
63 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
65
66 /**
67 * @param prependString
68 * String to prepend to configs
69 * @return String representation of configs
70 */
71 std::string toString(std::string prependString = "");
72
73};
74
75} // namespace led
76} // namespace phoenix
77} // namespace ctre
LEDStripType
The various LED types that the CANdle can support.
Definition CANdleLedStripType.h:17
@ RGB
LEDs that are controlled by Red-Green-Blue values.
Definition CANdleLedStripType.h:25
VBatOutputMode
The various methods of managing the VBat output behavior.
Definition VBatOutputMode.h:18
@ On
VBat output is on at full power, no modulation.
Definition VBatOutputMode.h:22
WPI Compliant Pigeon class.
Definition PigeonIMU_StickyFaults.h:6
Configurables for any custom param configs.
Definition CustomParamConfiguration.h:11
Configurables available to CANdle.
Definition CANdleConfiguration.h:23
VBatOutputMode vBatOutputMode
The behavior of VBat output.
Definition CANdleConfiguration.h:43
bool disableWhenLOS
True to turn off LEDs when Loss of Signal occurrs.
Definition CANdleConfiguration.h:35
bool v5Enabled
True to turn off the 5V rail.
Definition CANdleConfiguration.h:47
bool statusLedOffWhenActive
True to turn off Status LED when CANdle is actively being controlled.
Definition CANdleConfiguration.h:39
std::string toString(std::string prependString="")
double brightnessScalar
Brightness scalar for all LEDs controlled.
Definition CANdleConfiguration.h:31
LEDStripType stripType
What type of LEDs the CANdle controls.
Definition CANdleConfiguration.h:27