Browse Source

Add FlyView Settings to configure Custom Actions

QGC4.4
Nick Exton 2 years ago
parent
commit
0bacde5392
  1. 13
      src/Settings/FlyView.SettingsGroup.json
  2. 2
      src/Settings/FlyViewSettings.cc
  3. 2
      src/Settings/FlyViewSettings.h

13
src/Settings/FlyView.SettingsGroup.json

@ -72,6 +72,19 @@ @@ -72,6 +72,19 @@
"shortDesc": "Send updated GCS' home position to autopilot in case of change of the home position",
"type": "bool",
"default": false
},
{
"name": "enableCustomActions",
"shortDesc": "Enable Custom Actions",
"type": "bool",
"default": false
},
{
"name": "customActionDefinitions",
"shortDesc": "Custom Action Definitions",
"longDesc": "File that defines custom actions to send connected vehicle",
"type": "string",
"default": ""
}
]
}

2
src/Settings/FlyViewSettings.cc

@ -28,4 +28,6 @@ DECLARE_SETTINGSFACT(FlyViewSettings, keepMapCenteredOnVehicle) @@ -28,4 +28,6 @@ DECLARE_SETTINGSFACT(FlyViewSettings, keepMapCenteredOnVehicle)
DECLARE_SETTINGSFACT(FlyViewSettings, showSimpleCameraControl)
DECLARE_SETTINGSFACT(FlyViewSettings, showObstacleDistanceOverlay)
DECLARE_SETTINGSFACT(FlyViewSettings, updateHomePosition)
DECLARE_SETTINGSFACT(FlyViewSettings, enableCustomActions)
DECLARE_SETTINGSFACT(FlyViewSettings, customActionDefinitions)

2
src/Settings/FlyViewSettings.h

@ -30,4 +30,6 @@ public: @@ -30,4 +30,6 @@ public:
DEFINE_SETTINGFACT(showSimpleCameraControl)
DEFINE_SETTINGFACT(showObstacleDistanceOverlay)
DEFINE_SETTINGFACT(updateHomePosition)
DEFINE_SETTINGFACT(enableCustomActions)
DEFINE_SETTINGFACT(customActionDefinitions)
};

Loading…
Cancel
Save