1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

OP-1781 Add the stash&restore operation vehicle type in systemsettings

This commit is contained in:
samguns 2015-03-25 11:07:19 +08:00
parent 2d9f3acc17
commit 44ab63d696
2 changed files with 6 additions and 0 deletions

View File

@ -425,6 +425,10 @@ void ConfigInputWidget::goToWizard()
actuatorSettingsData = actuatorSettingsObj->getData();
previousActuatorSettingsData = actuatorSettingsData;
// Stash systemSettings
systemSettingsData = systemSettingsObj->getData();
previousSystemSettingsData = systemSettingsData;
// Now reset channel and actuator settings (disable outputs)
resetChannelSettings();
resetActuatorSettings();
@ -468,6 +472,7 @@ void ConfigInputWidget::wzCancel()
manualSettingsObj->setData(previousManualSettingsData);
flightModeSettingsObj->setData(previousFlightModeSettingsData);
actuatorSettingsObj->setData(previousActuatorSettingsData);
systemSettingsObj->setData(previousSystemSettingsData);
}
void ConfigInputWidget::registerControlActivity()

View File

@ -142,6 +142,7 @@ private:
SystemSettings *systemSettingsObj;
SystemSettings::DataFields systemSettingsData;
SystemSettings::DataFields previousSystemSettingsData;
QSvgRenderer *m_renderer;