From 9d5d9ce3fc57e9be5a96d756bdbe30faaccc2c75 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Mon, 8 Oct 2012 12:31:10 +0900 Subject: [PATCH] ArduCopter: bug fix to ROI when no camera mount is specific --- ArduCopter/commands_logic.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/commands_logic.pde b/ArduCopter/commands_logic.pde index 4cf52d9375..184d4ff0d2 100644 --- a/ArduCopter/commands_logic.pde +++ b/ArduCopter/commands_logic.pde @@ -867,7 +867,7 @@ static void do_nav_roi() #if MOUNT == ENABLED // check if mount type requires us to rotate the quad - if( camera_mount.get_mount_type() == AP_Mount::k_tilt_roll ) { + if( camera_mount.get_mount_type() != AP_Mount::k_pan_tilt && camera_mount.get_mount_type() != AP_Mount::k_pan_tilt_roll ) { yaw_tracking = MAV_ROI_LOCATION; target_WP = command_nav_queue; auto_yaw = get_bearing_cd(¤t_loc, &target_WP);