From d4fb31b14ed6a0619af61da51fad2fd7d86e37f1 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Wed, 26 Aug 2015 13:03:01 -0700 Subject: [PATCH] Don't write autopilot type This can only come from the heartbeat --- src/uas/UAS.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 56e67ea98..68c5fb6f6 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; } -- 2.22.0