Browse Source

APMSafetyComponentSub.qml: update to use versionCompare()

QGC4.4
Willian Galvani 6 years ago
parent
commit
559f09cd0f
  1. 2
      src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml

2
src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml

@ -36,7 +36,7 @@ SetupPage { @@ -36,7 +36,7 @@ SetupPage {
QGCPalette { id: ggcPal; colorGroupEnabled: true }
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
property bool _firmware34: _activeVehicle.firmwareMajorVersion == 3 && _activeVehicle.firmwareMinorVersion == 4
property bool _firmware34: _activeVehicle.versionCompare(3, 5, 0) < 0
// Enable/Action parameters
property Fact _failsafeBatteryEnable: controller.getParameterFact(-1, "r.BATT_FS_LOW_ACT")

Loading…
Cancel
Save