32 #define ASCTEC_MIN_CMD -100
33 #define ASCTEC_MAX_CMD 100
35 #define ASCTEC_MIN_THROTTLE 0
36 #define ASCTEC_MAX_THROTTLE 200
38 #define ACTUATORS_ASCTEC_SLAVE_ADDR 0x02
40 PRINT_CONFIG_VAR(ACTUATORS_ASCTEC_I2C_DEV)
53 actuators_asctec.
nb_err = 0;
58 #if defined ACTUATORS_START_DELAY && ! defined SITL
59 if (!actuators_delay_done) {
61 else { actuators_delay_done =
true; }
#define ACTUATORS_ASCTEC_SLAVE_ADDR
enum actuators_asctec_addr cur_addr
struct i2c_transaction i2c_trans
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
transaction successfully finished by I2C driver
enum actuators_asctec_addr new_addr
#define ASCTEC_MIN_THROTTLE
uint8_t len_w
Number of bytes to write/transmit.
Hardware independent API for actuators (servos, motor controllers).
void actuators_asctec_set(bool motors_on)
struct ActuatorsAsctec actuators_asctec
transaction set to done by user level
Architecture independent timing functions.
#define ASCTEC_MAX_THROTTLE
enum I2CTransactionStatus status
Transaction status.
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
uint8_t slave_addr
Slave address.
Actuators driver for Asctec motor controllers.
transmit only transaction
void actuators_asctec_init(void)
enum I2CTransactionType type
Transaction type.
enum actuators_asctec_cmd cmd
Architecture independent I2C (Inter-Integrated Circuit Bus) API.