|
|
|
@ -25,8 +25,9 @@
@@ -25,8 +25,9 @@
|
|
|
|
|
/// @author Rustom Jehangir <rusty@bluerobotics.com>
|
|
|
|
|
|
|
|
|
|
#include "ArduSubFirmwarePlugin.h" |
|
|
|
|
#include "QGCApplication.h" |
|
|
|
|
#include "MissionManager.h" |
|
|
|
|
|
|
|
|
|
bool ArduSubFirmwarePlugin::_remapParamNameIntialized = false; |
|
|
|
|
FirmwarePlugin::remapParamNameMajorVersionMap_t ArduSubFirmwarePlugin::_remapParamName; |
|
|
|
|
|
|
|
|
|
APMSubMode::APMSubMode(uint32_t mode, bool settable) : |
|
|
|
|
APMCustomMode(mode, settable) |
|
|
|
@ -46,6 +47,29 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void)
@@ -46,6 +47,29 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void)
|
|
|
|
|
supportedFlightModes << APMSubMode(APMSubMode::STABILIZE ,true); |
|
|
|
|
supportedFlightModes << APMSubMode(APMSubMode::ALT_HOLD ,true); |
|
|
|
|
setSupportedModes(supportedFlightModes); |
|
|
|
|
|
|
|
|
|
if (!_remapParamNameIntialized) { |
|
|
|
|
FirmwarePlugin::remapParamNameMap_t& remapV3_5 = _remapParamName[3][5]; |
|
|
|
|
|
|
|
|
|
remapV3_5["SERVO5_FUNCTION"] = QStringLiteral("RC5_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO6_FUNCTION"] = QStringLiteral("RC6_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO7_FUNCTION"] = QStringLiteral("RC7_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO8_FUNCTION"] = QStringLiteral("RC8_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO9_FUNCTION"] = QStringLiteral("RC9_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO10_FUNCTION"] = QStringLiteral("RC10_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO11_FUNCTION"] = QStringLiteral("RC11_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO12_FUNCTION"] = QStringLiteral("RC12_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO13_FUNCTION"] = QStringLiteral("RC13_FUNCTION"); |
|
|
|
|
remapV3_5["SERVO14_FUNCTION"] = QStringLiteral("RC14_FUNCTION"); |
|
|
|
|
|
|
|
|
|
_remapParamNameIntialized = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int ArduSubFirmwarePlugin::remapParamNameHigestMinorVersionNumber(int majorVersionNumber) const |
|
|
|
|
{ |
|
|
|
|
// Remapping supports up to 3.5
|
|
|
|
|
return majorVersionNumber == 3 ? 5 : Vehicle::versionNotSetValue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int ArduSubFirmwarePlugin::manualControlReservedButtonCount(void) |
|
|
|
|