Browse Source

GimbalControllerSettings: Add setting to show or not Acquire/release control button

QGC4.4
davidsastresas 11 months ago committed by Julian Oes
parent
commit
390571fbf3
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 6
      src/Settings/GimbalController.SettingsGroup.json
  2. 3
      src/Settings/GimbalControllerSettings.cc
  3. 1
      src/Settings/GimbalControllerSettings.h

6
src/Settings/GimbalController.SettingsGroup.json

@ -49,6 +49,12 @@
"shortDesc": "Show Azimuth instead of local yaw on top toolbar gimbal indicator", "shortDesc": "Show Azimuth instead of local yaw on top toolbar gimbal indicator",
"type": "bool", "type": "bool",
"default": true "default": true
},
{
"name": "toolbarIndicatorShowAcquireReleaseControl",
"shortDesc": "Show Azimuth Acquire/release buttons in the gimbal buttons panel",
"type": "bool",
"default": false
} }
] ]
} }

3
src/Settings/GimbalControllerSettings.cc

@ -29,4 +29,5 @@ DECLARE_SETTINGSFACT(GimbalControllerSettings, CameraVFov)
DECLARE_SETTINGSFACT(GimbalControllerSettings, CameraHFov) DECLARE_SETTINGSFACT(GimbalControllerSettings, CameraHFov)
DECLARE_SETTINGSFACT(GimbalControllerSettings, CameraSlideSpeed) DECLARE_SETTINGSFACT(GimbalControllerSettings, CameraSlideSpeed)
DECLARE_SETTINGSFACT(GimbalControllerSettings, showAzimuthIndicatorOnMap) DECLARE_SETTINGSFACT(GimbalControllerSettings, showAzimuthIndicatorOnMap)
DECLARE_SETTINGSFACT(GimbalControllerSettings, toolbarIndicatorShowAzimuth) DECLARE_SETTINGSFACT(GimbalControllerSettings, toolbarIndicatorShowAzimuth)
DECLARE_SETTINGSFACT(GimbalControllerSettings, toolbarIndicatorShowAcquireReleaseControl)

1
src/Settings/GimbalControllerSettings.h

@ -25,4 +25,5 @@ public:
DEFINE_SETTINGFACT(CameraSlideSpeed) DEFINE_SETTINGFACT(CameraSlideSpeed)
DEFINE_SETTINGFACT(showAzimuthIndicatorOnMap) DEFINE_SETTINGFACT(showAzimuthIndicatorOnMap)
DEFINE_SETTINGFACT(toolbarIndicatorShowAzimuth) DEFINE_SETTINGFACT(toolbarIndicatorShowAzimuth)
DEFINE_SETTINGFACT(toolbarIndicatorShowAcquireReleaseControl)
}; };
Loading…
Cancel
Save