From 203073e3ba0f5179fcca89e9d186d3b993e5217b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Feb 2014 08:23:20 +1100 Subject: [PATCH] Rover: only use pivot steering in AUTO modes --- APMrover2/Steering.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APMrover2/Steering.pde b/APMrover2/Steering.pde index cdbe0aae14..e247d60429 100644 --- a/APMrover2/Steering.pde +++ b/APMrover2/Steering.pde @@ -69,7 +69,7 @@ static bool auto_check_trigger(void) */ static bool use_pivot_steering(void) { - if (g.skid_steer_out && g.pivot_turn_angle != 0) { + if (control_mode >= AUTO && g.skid_steer_out && g.pivot_turn_angle != 0) { int16_t bearing_error = wrap_180_cd(nav_controller->target_bearing_cd() - ahrs.yaw_sensor) / 100; if (abs(bearing_error) > g.pivot_turn_angle) { return true;