From 4ba847c4498ec8caa6c219af23b51ed8db15948e Mon Sep 17 00:00:00 2001 From: Amilcar Lucas Date: Sat, 4 Aug 2012 18:44:08 +0200 Subject: [PATCH] The mount type must be updated periodically --- ArduCopter/ArduCopter.pde | 4 ++++ ArduPlane/ArduPlane.pde | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 3fde6df418..673b0d6950 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -1355,6 +1355,10 @@ static void slow_loop() update_aux_servo_function(&g.rc_camera_roll, &g.rc_camera_pitch, &g.rc_camera_yaw); #endif +#if MOUNT == ENABLED + camera_mount.update_mount_type(); +#endif + // agmatthews - USERHOOKS #ifdef USERHOOK_SLOWLOOP USERHOOK_SLOWLOOP diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index 66e44e47f5..06eac72de7 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -908,6 +908,10 @@ static void slow_loop() #else 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); #endif + +#if MOUNT == ENABLED + camera_mount.update_mount_type(); +#endif break; case 2: