diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 56e67ea982aa5b76bf672c66e8a612d21ede5184..68c5fb6f68e3628ed1b126bd527babe371b069cf 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -285,7 +285,6 @@ void UAS::writeSettings() settings.beginGroup(QString("MAV%1").arg(uasId)); settings.setValue("NAME", this->name); settings.setValue("AIRFRAME", this->airframe); - settings.setValue("AP_TYPE", this->autopilot); settings.setValue("BATTERY_SPECS", getBatterySpecs()); settings.endGroup(); } @@ -300,7 +299,6 @@ void UAS::readSettings() settings.beginGroup(QString("MAV%1").arg(uasId)); this->name = settings.value("NAME", this->name).toString(); this->airframe = settings.value("AIRFRAME", this->airframe).toInt(); - this->autopilot = settings.value("AP_TYPE", this->autopilot).toInt(); if (settings.contains("BATTERY_SPECS")) { setBatterySpecs(settings.value("BATTERY_SPECS").toString()); @@ -317,7 +315,6 @@ void UAS::deleteSettings() { this->name = ""; this->airframe = QGC_AIRFRAME_GENERIC; - this->autopilot = -1; warnLevelPercent = UAS_DEFAULT_BATTERY_WARNLEVEL; }