13 #ifndef KOBUKI_COMMAND_DATA_HPP__
14 #define KOBUKI_COMMAND_DATA_HPP__
45 BaseControl = 1, Sound = 3, SoundSequence = 4, RequestExtra = 9, ChangeFrame = 10, RequestEeprom = 11,
46 SetDigitalOut = 12, SetController = 13, GetController = 14
51 HardwareVersion = 0x01, FirmwareVersion = 0x02,
UniqueDeviceID = 0x08
69 : command(BaseControl),
speed(0),
radius(0), request_flags(0), gp_out(0x00f0)
70 , type(0), p_gain(1000), i_gain(1000), d_gain(1000)
82 unsigned char duration;
87 unsigned char segment_name;
90 uint16_t request_flags;
93 unsigned char frame_id;
108 unsigned char reserved;
120 static Command SetControllerGain(
const unsigned char &type,
121 const unsigned int &p_gain,
122 const unsigned int &i_gain,
123 const unsigned int &d_gain);
124 static Command GetControllerGain();
128 void resetBuffer(
Buffer &buffer);
133 static const unsigned char header0;
134 static const unsigned char header1;