28 #ifndef ACTUATORS_BEBOP_RAW_H_
29 #define ACTUATORS_BEBOP_RAW_H_
35 #define ACTUATORS_BEBOP_ADDR 0x10
38 #define ACTUATORS_BEBOP_SET_REF_SPEED 0x02
39 #define ACTUATORS_BEBOP_GET_OBS_DATA 0x20
40 #define ACTUATORS_BEBOP_START_PROP 0x40
41 #define ACTUATORS_BEBOP_TOGGLE_GPIO 0x4D
42 #define ACTUATORS_BEBOP_STOP_PROP 0x60
43 #define ACTUATORS_BEBOP_CLEAR_ERROR 0x80
44 #define ACTUATORS_BEBOP_PLAY_SOUND 0x82
45 #define ACTUATORS_BEBOP_GET_INFO 0xA0
55 #define ActuatorsBebopSet(_i, _v) { actuators_bebop.rpm_ref[_i] = _v; }
56 #define ActuatorsBebopCommit() actuators_bebop_commit();
57 #define ActuatorsBebopInit() actuators_bebop_init();
uint8_t led
Current led status.
void actuators_bebop_init(void)
struct i2c_transaction i2c_trans
I2C transaction for communicating with the bebop BLDC driver.
uint16_t rpm_ref[4]
Reference RPM.
uint16_t rpm_obs[4]
Observed RPM.
void actuators_bebop_commit(void)
struct ActuatorsBebop actuators_bebop
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.