13 #ifndef KOBUKI_CORE_SENSORS_HPP__ 14 #define KOBUKI_CORE_SENSORS_HPP__ 20 #include "../packet_handler/payload_base.hpp" 21 #include "../macros.hpp" 57 static const uint8_t Button0 = 0x01;
58 static const uint8_t Button1 = 0x02;
59 static const uint8_t Button2 = 0x04;
62 static const uint8_t LeftBumper = 0x04;
63 static const uint8_t CenterBumper = 0x02;
64 static const uint8_t RightBumper = 0x01;
67 static const uint8_t LeftCliff = 0x04;
68 static const uint8_t CenterCliff = 0x02;
69 static const uint8_t RightCliff = 0x01;
72 static const uint8_t LeftWheel = 0x02;
73 static const uint8_t RightWheel = 0x01;
77 static const uint8_t AdapterType = 0x10;
79 static const uint8_t BatteryStateMask = 0x0F;
80 static const uint8_t Discharging = 0x00;
81 static const uint8_t Charged = 0x02;
82 static const uint8_t Charging = 0x06;
85 static const uint8_t LeftWheel_OC = 0x01;
86 static const uint8_t RightWheel_OC = 0x02;
Provides base class for payloads.