Rover: set reverse to false on entering a mode

This commit is contained in:
Randy Mackay 2018-08-22 14:21:37 +09:00
parent 289fe6c391
commit 8b9b1fdb66

View File

@ -42,7 +42,14 @@ bool Mode::enter()
}
}
return _enter();
bool ret = _enter();
// initialisation common to all modes
if (ret) {
set_reversed(false);
}
return ret;
}
// decode pilot steering and throttle inputs and return in steer_out and throttle_out arguments