From 83553a248707684d45bfcb01722abe5ebf1f90a7 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Mon, 27 Feb 2017 12:03:46 -0500 Subject: [PATCH] Add Sub master to firmware options --- src/VehicleSetup/FirmwareUpgradeController.cc | 5 ++++- src/VehicleSetup/FirmwareUpgradeController.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/VehicleSetup/FirmwareUpgradeController.cc b/src/VehicleSetup/FirmwareUpgradeController.cc index 838da4133..bf83ef8cc 100644 --- a/src/VehicleSetup/FirmwareUpgradeController.cc +++ b/src/VehicleSetup/FirmwareUpgradeController.cc @@ -226,7 +226,8 @@ void FirmwareUpgradeController::_initFirmwareHash() { AutoPilotStackAPM, DeveloperFirmware, CopterFirmware, "http://firmware.ardupilot.org/Copter/latest/PX4/ArduCopter-v2.px4"}, { AutoPilotStackAPM, DeveloperFirmware, HeliFirmware, "http://firmware.ardupilot.org/Copter/latest/PX4-heli/ArduCopter-v2.px4"}, { AutoPilotStackAPM, DeveloperFirmware, PlaneFirmware, "http://firmware.ardupilot.org/Plane/latest/PX4/ArduPlane-v2.px4"}, - { AutoPilotStackAPM, DeveloperFirmware, RoverFirmware, "http://firmware.ardupilot.org/Rover/latest/PX4/APMrover2-v2.px4"} + { AutoPilotStackAPM, DeveloperFirmware, RoverFirmware, "http://firmware.ardupilot.org/Rover/latest/PX4/APMrover2-v2.px4"}, + { AutoPilotStackAPM, DeveloperFirmware, SubFirmware, "http://firmware.ardupilot.org/Sub/latest/PX4/ArduSub-v2.px4"}, }; //////////////////////////////////// PX4FMU aerocore firmwares ////////////////////////////////////////////////// @@ -701,6 +702,8 @@ QStringList FirmwareUpgradeController::apmAvailableVersions(void) case CopterFirmware: version = "MultiRotor - "; break; + case SubFirmware: + version = "Sub - "; break; case PlaneFirmware: case RoverFirmware: diff --git a/src/VehicleSetup/FirmwareUpgradeController.h b/src/VehicleSetup/FirmwareUpgradeController.h index 683301931..1209135df 100644 --- a/src/VehicleSetup/FirmwareUpgradeController.h +++ b/src/VehicleSetup/FirmwareUpgradeController.h @@ -63,6 +63,7 @@ public: CopterFirmware, PlaneFirmware, RoverFirmware, + SubFirmware, DefaultVehicleFirmware } FirmwareVehicleType_t; -- 2.22.0