mirror of https://github.com/ArduPilot/ardupilot
Rover: slew throttle in all modes
This commit is contained in:
parent
822c4b6dca
commit
23028a659b
|
@ -21,7 +21,6 @@ void Mode::exit()
|
||||||
|
|
||||||
bool Mode::enter()
|
bool Mode::enter()
|
||||||
{
|
{
|
||||||
g2.motors.slew_limit_throttle(false);
|
|
||||||
return _enter();
|
return _enter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ bool ModeAuto::_enter()
|
||||||
|
|
||||||
// other initialisation
|
// other initialisation
|
||||||
auto_triggered = false;
|
auto_triggered = false;
|
||||||
g2.motors.slew_limit_throttle(true);
|
|
||||||
|
|
||||||
// initialise reversed to be false
|
// initialise reversed to be false
|
||||||
set_reversed(false);
|
set_reversed(false);
|
||||||
|
|
|
@ -13,7 +13,6 @@ bool ModeGuided::_enter()
|
||||||
// guided mode never travels in reverse
|
// guided mode never travels in reverse
|
||||||
rover.set_reverse(false);
|
rover.set_reverse(false);
|
||||||
|
|
||||||
g2.motors.slew_limit_throttle(true);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ bool ModeRTL::_enter()
|
||||||
// RTL never reverses
|
// RTL never reverses
|
||||||
rover.set_reverse(false);
|
rover.set_reverse(false);
|
||||||
|
|
||||||
g2.motors.slew_limit_throttle(true);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue