diff --git a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp index 48a6ead40..878d76a78 100644 --- a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp @@ -1703,23 +1703,15 @@ void ConfigInputWidget::simpleCalibration(bool enable) } else { manualCommandData = manualCommandObj->getData(); manualSettingsData = manualSettingsObj->getData(); + systemSettingsData = systemSettingsObj->getData(); - QMessageBox::StandardButton reply; - reply = QMessageBox::question(this, tr("Ground vehicle"), - tr("

Are you configuring a transmitter for your ground vehicle with reversible motor
" - "controlled by throttle stick?

" - "

If so, please make sure you've centered throttle control and press Yes button. Otherwise, press No.

" - "

Attention, if you press Yes, then the Flight Mode Count will be set to 1.

"), - QMessageBox::Yes | QMessageBox::No); + if (systemSettingsData.AirframeType == SystemSettings::AIRFRAMETYPE_GROUNDVEHICLECAR) { + QMessageBox::warning(this, tr("Ground Vehicle"), + tr("

Please center throttle control and press OK when ready.

")); - if (reply == QMessageBox::Yes) { transmitterType = ground; manualSettingsData.ChannelNeutral[ManualControlSettings::CHANNELNEUTRAL_THROTTLE] = manualCommandData.Channel[ManualControlSettings::CHANNELNUMBER_THROTTLE]; - /* Make sure to tell controller, this is really a ground vehicle. */ - systemSettingsData = systemSettingsObj->getData(); - systemSettingsData.AirframeType = SystemSettings::AIRFRAMETYPE_GROUNDVEHICLECAR; - systemSettingsObj->setData(systemSettingsData); } restoreMdataSingle(manualCommandObj, &manualControlMdata);