14 #include "../../include/xbot_driver/packets/core_sensors.hpp" 15 #include "../../include/xbot_driver/packet_handler/payload_headers.hpp" 60 unsigned char header_id;
65 std::cout<<
"header_id is wrong. header_id:"<<(
unsigned int)header_id<<
std::endl;
71 uint16_t tempvariable = 0;
144 if (byteStream.
size() < 2)
150 variable = ((
unsigned int)(a&0x0f))/100.0;
152 variable += ((
unsigned int)(a>>4))/10.0;
154 variable += (
unsigned int)(b&0x0f);
156 variable += ((
unsigned int)(b>>4))*10;
unsigned int size() const
lqueue< uint > queue_rear_echo
unsigned char power_percent
void build_special_variable(float &variable, ecl::PushAndPop< unsigned char > &byteStream)
float right_motor_current
bool serialise(ecl::PushAndPop< unsigned char > &byteStream)
struct xbot::CoreSensors::Data data
lqueue< uint > queue_front_echo
void buildVariable(T &V, ecl::PushAndPop< unsigned char > &buffer)
bool deserialise(ecl::PushAndPop< unsigned char > &byteStream)
lqueue< uint > queue_rear_infrared
lqueue< uint > queue_front_infrared