59 bool isAccelarating();
62 bool isAtTargetPwrPerc();
65 int16_t normalizePwrPerc(int16_t pwrPerc);
73 unsigned long _lastUpdate = 0;
75 int16_t _targetPwrPerc;
76 int16_t _currentPwrPerc;
Definition BLEHubChannelController.h:10
Definition MCChannelConfig.h:8
Definition MCChannelController.h:9
void EmergencyBrake(bool enabled)
Definition MCChannelController.cpp:156
DeviceType GetAttachedDevice()
Definition MCChannelController.cpp:32
void ManualBrake(bool enabled)
Definition MCChannelController.cpp:151
bool UpdateCurrentPwrPerc()
Definition MCChannelController.cpp:90
void SetCurrentPwrPerc(int16_t currentPwrPerc)
Definition MCChannelController.cpp:85
int16_t GetCurrentPwrPerc()
Definition MCChannelController.cpp:59
void SetTargetPwrPerc(int16_t targetPwrPerc)
Definition MCChannelController.cpp:52
uint8_t GetAbsCurrentPwrPerc()
Definition MCChannelController.cpp:141
MCChannelController(MCChannelConfig *config)
Definition MCChannelController.cpp:9
void SetHubLedColor(HubLedColor color)
Definition MCChannelController.cpp:27
HubLedColor GetHubLedColor()
Definition MCChannelController.cpp:22
bool IsDrivingForward()
Definition MCChannelController.cpp:146
void SetMinPwrPerc(int16_t minPwrPerc)
Definition MCChannelController.cpp:42
MCChannel * GetChannel()
Definition MCChannelController.cpp:37
int16_t GetTargetPwrPerc()
Definition MCChannelController.cpp:47
Definition MCPinController.h:9
HubLedColor
Definition enums.h:40
@ BLACK
Definition enums.h:41
DeviceType
Definition enums.h:20