Rover: enable pivot turns in auto mode

This commit is contained in:
Daniel Widmann 2017-11-06 22:03:08 +01:00 committed by Randy Mackay
parent f7641d7b01
commit ac7e76cc43

View File

@ -6,7 +6,7 @@
bool Rover::use_pivot_steering(float yaw_error_cd)
{
// check cases where we clearly cannot use pivot steering
if (control_mode->is_autopilot_mode() || !g2.motors.have_skid_steering() || g.pivot_turn_angle <= 0) {
if (!g2.motors.have_skid_steering() || g.pivot_turn_angle <= 0) {
pivot_steering_active = false;
return false;
}