Plane: use new RC_Channels API

This commit is contained in:
Andrew Tridgell 2014-02-06 10:12:07 +11:00
parent 698736b66d
commit 04f2c07b2b
2 changed files with 2 additions and 9 deletions

View File

@ -931,14 +931,7 @@ static void obc_fs_check(void)
*/
static void update_aux(void)
{
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
update_aux_servo_function(&g.rc_5, &g.rc_6, &g.rc_7, &g.rc_8, &g.rc_9, &g.rc_10, &g.rc_11, &g.rc_12);
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM2
update_aux_servo_function(&g.rc_5, &g.rc_6, &g.rc_7, &g.rc_8, &g.rc_10, &g.rc_11);
#else
update_aux_servo_function(&g.rc_5, &g.rc_6, &g.rc_7, &g.rc_8);
#endif
enable_aux_servos();
RC_Channel_aux::enable_aux_servos();
#if MOUNT == ENABLED
camera_mount.update_mount_type();

View File

@ -49,7 +49,7 @@ static void init_rc_out()
channel_throttle->enable_out();
}
channel_rudder->enable_out();
enable_aux_servos();
RC_Channel_aux::enable_aux_servos();
// Initialization of servo outputs
for (uint8_t i=0; i<8; i++) {