Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve gimbal support for QGC 4.4 #11264

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b63ee8d
QGCButton.qml: add fontWeight property
Davidsastresas Mar 15, 2024
99a59ac
MainRootWindow.qml: indicator popup, allow to not dim background
Davidsastresas Mar 15, 2024
cb6ab50
ToolStrip.qml: expose fontSize for ToolStripHoverButton
Davidsastresas Mar 17, 2024
0a1cb8a
Remove ROI Indicator from toolbar
DonLakeFlyer Mar 2, 2024
8011cdb
Add support to pass click position through signal
DonLakeFlyer Mar 5, 2024
557daa6
Add ROI editing menu
DonLakeFlyer Mar 5, 2024
c444b0a
FlyViewMap.qml: fix previous c1364dad3 commit after backport to 4.3 f…
Davidsastresas Mar 18, 2024
71aa2f9
GimbalController and GimbalControllerSettings: first commit
Davidsastresas Mar 9, 2024
f8039d6
QGCApplication.cc: add GimbalController and register to qml
Davidsastresas Mar 9, 2024
44d8407
qgroundcontrol.pro: add GimbalController and GimbalControllerSettings
Davidsastresas Mar 9, 2024
a6639f6
Vehicle: add gimbalController, and move gimbal functionality there:
Davidsastresas Mar 28, 2024
2136ac0
resources: add new icon for gimbal indicator, artwork by Alex de la T…
Davidsastresas Mar 17, 2024
403deb1
qgcresources.qrc: add new icon for gimbal indicator
Davidsastresas Mar 17, 2024
7e8cea1
GimbalIndicator.qml: first commit
Davidsastresas Mar 17, 2024
c583c41
FirmwarePlugin.cc: add gimbalIndicator to toolIndicators
Davidsastresas Mar 16, 2024
f6791c7
VehicleMapItem.qml: add gimbal yaw indicator over map
Davidsastresas Mar 17, 2024
b24cecb
OnScreenGimbalController.qml: first commit, process onscreen mouse ac…
Davidsastresas Mar 19, 2024
f7326ff
FlyviewVideo.qml: add OnScreenGimbalController for gimbal mouse actio…
Davidsastresas Mar 19, 2024
d8b9dd8
InstrumentValueIcons: add 2 new icons for gimbal telemetry, artwork b…
Davidsastresas Mar 17, 2024
739036e
Joystick: fix gimbal control and add some new button actions for gimb…
Davidsastresas Mar 9, 2024
f7c9d0f
FlyViewMap.qml: ROI edit click area ocupying all the label:
Davidsastresas Mar 19, 2024
b60251b
Vehicle: add roiCoordChanged signal:
Davidsastresas Mar 19, 2024
bd655e9
FlyViewMap.qml: connect roilocationitem to vehicle roiCoordChanged:
Davidsastresas Mar 19, 2024
f1726c7
GimbalController.cc: send NAN instead of 0 when rates are not used
Davidsastresas Mar 28, 2024
f937f3d
GimbalControllerSettings: Add setting to show or not Acquire/release …
Davidsastresas Mar 28, 2024
1644ca1
GimbalIndicator.qml: Add Acquire/release control button
Davidsastresas Mar 28, 2024
45e3307
FlyViewVideo.qml, OnScreenGimbalController.qml: fix conflict with tra…
Davidsastresas Mar 28, 2024
fa77021
Vehicle: independent function to delete gimbal controller, needed for…
Davidsastresas Apr 8, 2024
ace6ff1
RequestMessageTest.cc: disable vehicle gimbal controller on this test:
Davidsastresas Apr 8, 2024
32dd49d
SendMavCommandWithSignallingTest.cc: ignore MAV_CMD_REQUEST_MESSAGE:
Davidsastresas Apr 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions qgcresources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,7 @@
<qresource prefix="/opengl">
<file>resources/opengl/buglist.json</file>
</qresource>
<qresource prefix="/gimbal">
<file alias="payload.svg">resources/gimbal/payload.svg</file>
</qresource>
</RCC>
5 changes: 5 additions & 0 deletions qgroundcontrol.pro
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ INCLUDEPATH += \
src/FlightMap/Widgets \
src/FollowMe \
src/Geo \
src/Gimbal \
src/GPS \
src/Joystick \
src/PlanView \
Expand Down Expand Up @@ -647,6 +648,7 @@ HEADERS += \
src/Geo/MGRS.hpp \
src/Geo/TransverseMercator.hpp \
src/Geo/PolarStereographic.hpp \
src/Gimbal/GimbalController.h \
src/QGC.h \
src/QGCApplication.h \
src/QGCCachedFileDownload.h \
Expand Down Expand Up @@ -693,6 +695,7 @@ HEADERS += \
src/Settings/SettingsManager.h \
src/Settings/UnitsSettings.h \
src/Settings/VideoSettings.h \
src/Settings/GimbalControllerSettings.h \
src/ShapeFileHelper.h \
src/SHPFileHelper.h \
src/Terrain/TerrainQuery.h \
Expand Down Expand Up @@ -907,6 +910,7 @@ SOURCES += \
src/Geo/MGRS.cpp \
src/Geo/TransverseMercator.cpp \
src/Geo/PolarStereographic.cpp \
src/Gimbal/GimbalController.cc \
src/QGC.cc \
src/QGCApplication.cc \
src/QGCCachedFileDownload.cc \
Expand Down Expand Up @@ -952,6 +956,7 @@ SOURCES += \
src/Settings/SettingsManager.cc \
src/Settings/UnitsSettings.cc \
src/Settings/VideoSettings.cc \
src/Settings/GimbalControllerSettings.cc \
src/ShapeFileHelper.cc \
src/SHPFileHelper.cc \
src/Terrain/TerrainQuery.cc \
Expand Down
5 changes: 4 additions & 1 deletion qgroundcontrol.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<file alias="MultiVehicleSelector.qml">src/ui/toolbar/MultiVehicleSelector.qml</file>
<file alias="RCRSSIIndicator.qml">src/ui/toolbar/RCRSSIIndicator.qml</file>
<file alias="RemoteIDIndicator.qml">src/ui/toolbar/RemoteIDIndicator.qml</file>
<file alias="ROIIndicator.qml">src/ui/toolbar/ROIIndicator.qml</file>
<file alias="TelemetryRSSIIndicator.qml">src/ui/toolbar/TelemetryRSSIIndicator.qml</file>
<file alias="VTOLModeIndicator.qml">src/ui/toolbar/VTOLModeIndicator.qml</file>
<file alias="APMSupportForwardingIndicator.qml">src/ui/toolbar/APMSupportForwardingIndicator.qml</file>
<file alias="GimbalIndicator.qml">src/ui/toolbar/GimbalIndicator.qml</file>
</qresource>
<qresource prefix="/checklists">
<file alias="DefaultChecklist.qml">src/FlightDisplay/DefaultChecklist.qml</file>
Expand Down Expand Up @@ -215,6 +215,7 @@
<file alias="QGroundControl/FlightDisplay/FlyViewToolStrip.qml">src/FlightDisplay/FlyViewToolStrip.qml</file>
<file alias="QGroundControl/FlightDisplay/FlyViewToolStripActionList.qml">src/FlightDisplay/FlyViewToolStripActionList.qml</file>
<file alias="QGroundControl/FlightDisplay/FlyViewVideo.qml">src/FlightDisplay/FlyViewVideo.qml</file>
<file alias="QGroundControl/FlightDisplay/OnScreenGimbalController.qml">src/FlightDisplay/OnScreenGimbalController.qml</file>
<file alias="QGroundControl/FlightDisplay/FlyViewWidgetLayer.qml">src/FlightDisplay/FlyViewWidgetLayer.qml</file>
<file alias="QGroundControl/FlightDisplay/GuidedActionActionList.qml">src/FlightDisplay/GuidedActionActionList.qml</file>
<file alias="QGroundControl/FlightDisplay/GuidedActionConfirm.qml">src/FlightDisplay/GuidedActionConfirm.qml</file>
Expand Down Expand Up @@ -349,8 +350,10 @@
<file alias="Vehicle/HygrometerFact.json">src/Vehicle/HygrometerFact.json</file>
<file alias="Vehicle/GeneratorFact.json">src/Vehicle/GeneratorFact.json</file>
<file alias="Vehicle/EFIFact.json">src/Vehicle/EFIFact.json</file>
<file alias="Vehicle/GimbalFact.json">src/Gimbal/GimbalFact.json</file>
<file alias="Video.SettingsGroup.json">src/Settings/Video.SettingsGroup.json</file>
<file alias="VTOLLandingPattern.FactMetaData.json">src/MissionManager/VTOLLandingPattern.FactMetaData.json</file>
<file alias="GimbalController.SettingsGroup.json">src/Settings/GimbalController.SettingsGroup.json</file>
</qresource>
<qresource prefix="/MockLink">
<file alias="APMArduSubMockLink.params">src/comm/APMArduSubMockLink.params</file>
Expand Down
2 changes: 2 additions & 0 deletions resources/InstrumentValueIcons/InstrumentValueIcons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,7 @@
<file alias="buoy.svg">buoy.svg</file>
<file alias="cheveron-down.svg">cheveron-down.svg</file>
<file alias="view-tile.svg">view-tile.svg</file>
<file alias="gimbal-1.svg">gimbal-1.svg</file>
<file alias="gimbal-2.svg">gimbal-2.svg</file>
</qresource>
</RCC>
24 changes: 24 additions & 0 deletions resources/InstrumentValueIcons/gimbal-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions resources/InstrumentValueIcons/gimbal-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions resources/gimbal/payload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/FirmwarePlugin/FirmwarePlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ const QVariantList& FirmwarePlugin::toolIndicators(const Vehicle*)
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/RCRSSIIndicator.qml")),
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/BatteryIndicator.qml")),
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/RemoteIDIndicator.qml")),
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/GimbalIndicator.qml")),
});
}
return _toolIndicatorList;
Expand All @@ -343,7 +344,6 @@ const QVariantList& FirmwarePlugin::modeIndicators(const Vehicle*)
//-- Default list of indicators for all vehicles.
if(_modeIndicatorList.size() == 0) {
_modeIndicatorList = QVariantList({
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/ROIIndicator.qml")),
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/MultiVehicleSelector.qml")),
QVariant::fromValue(QUrl::fromUserInput("qrc:/toolbar/LinkIndicator.qml")),
});
Expand Down
Loading
Loading