13 #ifndef XBOT_COMMAND_DATA_HPP__ 14 #define XBOT_COMMAND_DATA_HPP__ 20 #include <ecl/containers.hpp> 69 : command(BaseControl),
73 yaw_platform_degree(0),
74 pitch_platform_degree(0),
76 sound_state(0),sound_volume(100),
103 static Command SetLiftControl(
const unsigned char &lift_height);
105 static Command SetYawPlatformControl(
const int &yaw_platform_degree);
107 static Command SetPitchPlatformControl(
const int &pitch_platform_degree);
109 static Command SetSoundControl(
const bool &sound_state);
111 static Command SetLedControl(
const unsigned char &led);
113 static Command SetPowerControl(
const bool &power_state);
116 void resetBuffer(Buffer &buffer);
static const unsigned char header1
unsigned char pitch_platform_degree
bool deserialise(ecl::PushAndPop< unsigned char > &byteStream)
unsigned char yaw_platform_degree
static const unsigned char header0
Provides base class for payloads.
unsigned char lift_height
unsigned char sound_volume
Convenience header for modules.
ecl::PushAndPop< unsigned char > Buffer
A safe windowing class that opens onto array-like containers.
Data structure containing data for commands.
ecl::Stencil< Buffer > BufferStencil