31 #ifndef ACTUATORS_ARDRONE2_H_
32 #define ACTUATORS_ARDRONE2_H_
36 #ifndef ACTUATORS_ARDRONE_NB
37 #define ACTUATORS_ARDRONE_NB 4
40 #define SERVOS_TICS_OF_USEC(_v) (_v)
42 #define ActuatorArdroneSet(_i, _v) { actuators_pwm_values[_i] = _v; }
43 #define ActuatorsArdroneCommit() actuators_ardrone_commit();
44 #define ActuatorsArdroneInit() actuators_ardrone_init();
48 #define MOT_LEDGREEN 2
49 #define MOT_LEDORANGE 3
void actuators_ardrone_close(void)
void actuators_ardrone_set_leds(uint8_t led0, uint8_t led1, uint8_t led2, uint8_t led3)
Write LED command cmd = 011rrrr0 000gggg0 (this is ardrone1 format, we need ardrone2 format)
void actuators_ardrone_commit(void)
uint16_t actuators_pwm_values[ACTUATORS_ARDRONE_NB]
void actuators_ardrone_set_pwm(uint16_t pwm0, uint16_t pwm1, uint16_t pwm2, uint16_t pwm3)
Write motor speed command cmd = 001aaaaa aaaabbbb bbbbbccc ccccccdd ddddddd0.
#define ACTUATORS_ARDRONE_NB
void actuators_ardrone_init(void)
int actuators_ardrone_cmd(uint8_t cmd, uint8_t *reply, int replylen)
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.