CTRE Phoenix C++ 5.33.1
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 */
15 /**
16 * What type of LEDs the CANdle controls
17 */
19 /**
20 * Brightness scalar for all LEDs controlled
21 */
22 double brightnessScalar {1.0};
23 /**
24 * True to turn off LEDs when Loss of Signal occurrs
25 */
26 bool disableWhenLOS {false};
27 /**
28 * True to turn off Status LED when CANdle is actively being controlled
29 */
31 /**
32 * The behavior of VBat output
33 */
35 /**
36 * True to turn off the 5V rail. This turns off the on-board LEDs as well.
37 */
38 bool v5Enabled {false};
39
41
42 /**
43 * @param prependString
44 * String to prepend to configs
45 * @return String representation of configs
46 */
47 std::string toString(std::string prependString = "");
48
49};
50
51} // namespace led
52} // namespace phoenix
53} // namespace ctre
LEDStripType
The various LED types that the CANdle can support.
Definition: CANdleLedStripType.h:8
@ RGB
LEDs that are controlled by Red-Green-Blue values.
Definition: CANdleLedStripType.h:16
VBatOutputMode
The various methods of managing the VBat output behavior.
Definition: VBatOutputMode.h:9
@ On
VBat output is on at full power, no modulation.
Definition: VBatOutputMode.h:13
namespace ctre
Definition: paramEnum.h:5
Configurables for any custom param configs.
Definition: CustomParamConfiguration.h:11
Configurables available to CANdle.
Definition: CANdleConfiguration.h:14
VBatOutputMode vBatOutputMode
The behavior of VBat output.
Definition: CANdleConfiguration.h:34
bool disableWhenLOS
True to turn off LEDs when Loss of Signal occurrs.
Definition: CANdleConfiguration.h:26
bool v5Enabled
True to turn off the 5V rail.
Definition: CANdleConfiguration.h:38
bool statusLedOffWhenActive
True to turn off Status LED when CANdle is actively being controlled.
Definition: CANdleConfiguration.h:30
std::string toString(std::string prependString="")
double brightnessScalar
Brightness scalar for all LEDs controlled.
Definition: CANdleConfiguration.h:22
LEDStripType stripType
What type of LEDs the CANdle controls.
Definition: CANdleConfiguration.h:18