Commit bcade365 authored by Don Gagne's avatar Don Gagne

Rover radio cal fixes

Throttle trim must be center throttle
parent 269ce521
...@@ -206,11 +206,20 @@ void RadioComponentController::_advanceState(void) ...@@ -206,11 +206,20 @@ void RadioComponentController::_advanceState(void)
/// @brief Sets up the state machine according to the current step from _currentStep. /// @brief Sets up the state machine according to the current step from _currentStep.
void RadioComponentController::_setupCurrentState(void) void RadioComponentController::_setupCurrentState(void)
{ {
const stateMachineEntry* state = _getStateMachineEntry(_currentStep); static const char* msgBeginAPMRover = "Center the Throttle stick as shown in diagram.\nReset all transmitter trims to center.\n\n"
"Please ensure all motor power is disconnected from the vehicle.\n\n"
_statusText->setProperty("text", state->instructions); "Click Next to continue";
const stateMachineEntry* state = _getStateMachineEntry(_currentStep);
_setHelpImage(state->image);
const char* instructions = state->instructions;
const char* helpImage = state->image;
if (_vehicle->rover() && _currentStep == 0) {
// Hack in center throttle start for Rover. This is to set the correct centered trim for throttle.
instructions = msgBeginAPMRover;
helpImage = _imageCenter;
}
_statusText->setProperty("text", instructions);
_setHelpImage(helpImage);
_stickDetectChannel = _chanMax(); _stickDetectChannel = _chanMax();
_stickDetectSettleStarted = false; _stickDetectSettleStarted = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment