mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
Disable the input wizard while running simple calibration
This commit is contained in:
parent
5c04268205
commit
b6df727d1a
@ -1157,6 +1157,8 @@ void ConfigInputWidget::updateCalibration()
|
|||||||
void ConfigInputWidget::simpleCalibration(bool enable)
|
void ConfigInputWidget::simpleCalibration(bool enable)
|
||||||
{
|
{
|
||||||
if (enable) {
|
if (enable) {
|
||||||
|
m_config->configurationWizard->setEnabled(false);
|
||||||
|
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
msgBox.setText(tr("Arming Settings are now set to Always Disarmed for your safety."));
|
msgBox.setText(tr("Arming Settings are now set to Always Disarmed for your safety."));
|
||||||
msgBox.setDetailedText(tr("You will have to reconfigure arming settings yourself afterwards."));
|
msgBox.setDetailedText(tr("You will have to reconfigure arming settings yourself afterwards."));
|
||||||
@ -1181,6 +1183,8 @@ void ConfigInputWidget::simpleCalibration(bool enable)
|
|||||||
|
|
||||||
connect(manualCommandObj, SIGNAL(objectUnpacked(UAVObject*)), this, SLOT(updateCalibration()));
|
connect(manualCommandObj, SIGNAL(objectUnpacked(UAVObject*)), this, SLOT(updateCalibration()));
|
||||||
} else {
|
} else {
|
||||||
|
m_config->configurationWizard->setEnabled(true);
|
||||||
|
|
||||||
manualCommandData = manualCommandObj->getData();
|
manualCommandData = manualCommandObj->getData();
|
||||||
manualSettingsData = manualSettingsObj->getData();
|
manualSettingsData = manualSettingsObj->getData();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user