mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
Rover: use new RC_Channels API
This commit is contained in:
parent
5a3a7f1cec
commit
871777fa57
@ -733,14 +733,7 @@ static void update_logging2(void)
|
|||||||
*/
|
*/
|
||||||
static void update_aux(void)
|
static void update_aux(void)
|
||||||
{
|
{
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
RC_Channel_aux::enable_aux_servos();
|
||||||
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();
|
|
||||||
|
|
||||||
#if MOUNT == ENABLED
|
#if MOUNT == ENABLED
|
||||||
camera_mount.update_mount_type();
|
camera_mount.update_mount_type();
|
||||||
|
Loading…
Reference in New Issue
Block a user