gusimplewhiteboard
wb_oculus_prime_serial.h
Go to the documentation of this file.
1
9#ifndef wb_oculus_prime_serial_h
10#define wb_oculus_prime_serial_h
11
12#include <gu_util.h>
13
14#pragma clang diagnostic push
15#pragma clang diagnostic ignored "-Wpadded" //TODO Remove once the class is done
16
17
23{
25 CONTROLLED_ARRAY_PROPERTY(uint8_t, forward, 2)
27 CONTROLLED_ARRAY_PROPERTY(uint8_t, right, 2)
28
29
30
32 CONTROLLED_PROPERTY(uint8_t, stop)
33
35 CONTROL_BIT(forward)
37 CONTROL_BIT(right)
39 CONTROL_BIT(stop)
40
41#ifdef __cplusplus
46 {
47 memset(this, 0, sizeof(*this));
48 }
49#endif
50};
51#pragma clang diagnostic pop
52
53#endif //_wb_oculus_prime_serial_h
/file wb_oculus_prime_serial.h
stop CONTROL_BIT(forward) CONTROL_BIT(left) CONTROL_BIT(right) CONTROL_BIT(stop) wb_oculus_prime_serial()
< value ignored, mask setting is what's used
CONTROLLED_ARRAY_PROPERTY(uint8_t, forward, 2) CONTROLLED_ARRAY_PROPERTY(uint8_t
speed for each wheel