33 enum class ControllerAction { SetLedOn, SetLedOff, Rumble, FlashLed, Exit };
37 RumbleMessage(
unsigned int leftForce,
unsigned int leftTimeout,
38 unsigned int rightForce,
unsigned int rightTimeout);
39 unsigned int GetLeftForce()
const;
40 unsigned int GetLeftTimeout()
const;
41 unsigned int GetRightForce()
const;
42 unsigned int GetRightTimeout()
const;
43 void SetLeftForce(
unsigned int leftForce);
44 void SetLeftTimeout(
unsigned int leftTimeout);
45 void SetRightForce(
unsigned int rightForce);
46 void SetRightTimeout(
unsigned int rightTimeout);
49 static const unsigned int leftForceOffset =
sizeof(ControllerAction);
50 static const unsigned int leftTimeoutOffset =
51 sizeof(ControllerAction) +
sizeof(
unsigned int);
52 static const unsigned int rightForceOffset =
53 sizeof(ControllerAction) + 2 *
sizeof(
unsigned int);
54 static const unsigned int rightTimeoutOffset =
55 sizeof(ControllerAction) + 3 *
sizeof(
unsigned int);
62 unsigned int GetLedId()
const;
65 void SetLedId(
unsigned int ledId);
68 static const unsigned int isOnOffset =
sizeof(ControllerAction);
69 static const unsigned int ledIdOffset =
70 sizeof(ControllerAction) +
sizeof(
bool);
76 unsigned int offTime);
77 unsigned int GetLedId()
const;
78 unsigned int GetOnTime()
const;
79 unsigned int GetOffTime()
const;
80 void SetLedId(
unsigned int ledId);
81 void SetOnTime(
unsigned int onTime);
82 void SetOffTime(
unsigned int offTime);
85 static const unsigned int ledIdOffset =
sizeof(ControllerAction);
86 static const unsigned int onTimeOffset =
87 sizeof(ControllerAction) +
sizeof(
unsigned int);
88 static const unsigned int offTimeOffset =
89 sizeof(ControllerAction) + 2 *
sizeof(
unsigned int);
94 #endif // CONTROLLER_H
namespace of the flair Framework
Definition: Ahrs.h:19
Definition: Controller.h:58
Base class for all Framework's classes.
Definition: Controller.h:73
Definition: Controller.h:35