Unverified Commit 7f81508f authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8383 from DonLakeFlyer/ROIAvailability

Drive Plan view ROI support from firmware capability bits
parents dfd72eea d80e89b1
...@@ -48,7 +48,7 @@ public: ...@@ -48,7 +48,7 @@ public:
GuidedModeCapability = 1 << 2, ///< Vehicle supports guided mode commands GuidedModeCapability = 1 << 2, ///< Vehicle supports guided mode commands
OrbitModeCapability = 1 << 3, ///< Vehicle supports orbit mode OrbitModeCapability = 1 << 3, ///< Vehicle supports orbit mode
TakeoffVehicleCapability = 1 << 4, ///< Vehicle supports guided takeoff TakeoffVehicleCapability = 1 << 4, ///< Vehicle supports guided takeoff
ROIModeCapability = 1 << 5, ///< Vehicle supports ROI ROIModeCapability = 1 << 5, ///< Vehicle supports ROI (both in Fly guided mode and from Plan creation)
} FirmwareCapabilities; } FirmwareCapabilities;
/// Maps from on parameter name to another /// Maps from on parameter name to another
......
...@@ -617,7 +617,7 @@ Item { ...@@ -617,7 +617,7 @@ Item {
name: _missionController.isROIActive ? qsTr("Cancel ROI") : qsTr("ROI"), name: _missionController.isROIActive ? qsTr("Cancel ROI") : qsTr("ROI"),
iconSource: "/qmlimages/MapAddMission.svg", iconSource: "/qmlimages/MapAddMission.svg",
buttonEnabled: true, buttonEnabled: true,
buttonVisible: _isMissionLayer, buttonVisible: _isMissionLayer && _planMasterController.controllerVehicle.roiModeSupported,
toggle: !_missionController.isROIActive toggle: !_missionController.isROIActive
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment