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();
struct ActuatorsBebop actuators_bebop
void actuators_bebop_init(void)
uint16_t rpm_obs[4]
Observed RPM.
uint8_t led
Current led status.
I2C transaction structure.
uint16_t rpm_ref[4]
Reference RPM.
struct i2c_transaction i2c_trans
I2C transaction for communicating with the bebop BLDC driver.
void actuators_bebop_commit(void)
Architecture independent I2C (Inter-Integrated Circuit Bus) API.