16 std::vector<BLEHub *>
Hubs;
22 void Drive(
const int16_t minSpeed,
const int16_t pwrPerc);
56 void handleConnectCallback(
bool connected);
60 void setManualBrake(
const bool enabled);
63 BLEHub *getHubByAddress(std::string address);
69 std::vector<MCLedBase *> _espLeds;
@ connected
Definition MController.h:16
Definition BLELocomotiveConfiguration.h:7
Definition BLELocomotive.h:11
bool AllHubsConnected()
Definition BLELocomotive.cpp:15
std::vector< BLEHub * > Hubs
Definition BLELocomotive.h:16
std::string GetLocoName()
Definition BLELocomotive.cpp:118
uint GetLocoAddress()
Definition BLELocomotive.cpp:123
void SetEmergencyBrake(const bool enabled)
Definition BLELocomotive.cpp:110
void SetHubLedColor(HubLedColor color)
Definition BLELocomotive.cpp:96
void Drive(const int16_t minSpeed, const int16_t pwrPerc)
Definition BLELocomotive.cpp:26
void BlinkLights(int durationInMs)
Definition BLELocomotive.cpp:82
uint GetHubCount()
Definition BLELocomotive.cpp:128
BLEHub * GetHub(uint index)
Definition BLELocomotive.cpp:133
BLELocomotive(BLELocomotiveConfiguration *config, MController *controller)
Definition BLELocomotive.cpp:9
void TriggerEvent(MCTriggerSource source, std::string eventType, std::string eventId, std::string value)
Definition BLELocomotive.cpp:56
Definition MController.h:20
HubLedColor
Definition enums.h:40
MCTriggerSource
Definition enums.h:77
MTC4BTController * controller
Definition main.cpp:17