26 #ifndef ACTUATORS_ASCTEC_H
27 #define ACTUATORS_ASCTEC_H
31 #include "generated/airframe.h"
65 #define actuators_asctec_SetCommand(_v) { \
66 actuators_asctec.cmd = _v; \
69 #define actuators_asctec_SetNewAddr(_v) { \
70 actuators_asctec.new_addr = _v; \
73 #define actuators_asctec_SetCurAddr(_v) { \
74 actuators_asctec.cur_addr = _v; \
80 #define ActuatorAsctecSet(_i, _v) { actuators_asctec.cmds[_i] = _v; }
81 #define ActuatorsAsctecInit() actuators_asctec_init()
82 #define ActuatorsAsctecCommit() actuators_asctec_set(autopilot_motors_on)
enum actuators_asctec_addr cur_addr
struct ActuatorsAsctec actuators_asctec
void actuators_asctec_set(bool_t motors_on)
struct i2c_transaction i2c_trans
enum actuators_asctec_addr new_addr
I2C transaction structure.
void actuators_asctec_init(void)
enum actuators_asctec_cmd cmd
Architecture independent I2C (Inter-Integrated Circuit Bus) API.