File tree Expand file tree Collapse file tree 7 files changed +36
-5
lines changed Expand file tree Collapse file tree 7 files changed +36
-5
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ add_subdirectory(FirmwarePlugin)
3333# add_subdirectory(FlightMap)
3434add_subdirectory (FollowMe)
3535add_subdirectory (Geo)
36+ add_subdirectory (Gimbal)
3637add_subdirectory (GPS)
3738add_subdirectory (Joystick)
3839add_subdirectory (MAVLink)
@@ -76,6 +77,7 @@ target_link_libraries(QGC
7677 # FlightMap
7778 # FlightDisplay
7879 FollowMe
80+ Gimbal
7981 GPS
8082 Joystick
8183 MAVLink
Original file line number Diff line number Diff line change 1+ find_package (Qt6 REQUIRED COMPONENTS Core Positioning)
2+
3+ qt_add_library(Gimbal STATIC
4+ GimbalController.cc
5+ GimbalController.h
6+ )
7+
8+ target_link_libraries (Gimbal
9+ PRIVATE
10+ Comms
11+ QGC
12+ Settings
13+ Utilities
14+ Vehicle
15+ PUBLIC
16+ Qt6::Core
17+ FactSystem
18+ MAVLink
19+ QmlControls
20+ )
21+
22+ target_include_directories (Gimbal PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
Original file line number Diff line number Diff line change 1313#include " SettingsManager.h"
1414#include " QGCLoggingCategory.h"
1515#include " ParameterManager.h"
16+ #include " MAVLinkProtocol.h"
1617
1718#include < QtQml/QQmlEngine>
1819
Original file line number Diff line number Diff line change 99
1010#pragma once
1111
12- #include < QLoggingCategory>
13- # include < cstdint >
14- #include " Vehicle.h "
15- #include " QmlObjectListModel.h "
16- #include " MAVLinkProtocol.h "
12+ #include < QtCore/ QLoggingCategory>
13+
14+ #include < QmlObjectListModel.h >
15+ #include < FactGroup.h >
16+ #include < MAVLinkLib.h >
1717
1818Q_DECLARE_LOGGING_CATEGORY (GimbalLog)
1919
2020class MavlinkProtocol;
21+ class Vehicle ;
22+ class MAVLinkProtocol ;
2123
2224class Gimbal : public FactGroup
2325{
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ target_link_libraries(Joystick
5656 PRIVATE
5757 Qt6::Qml
5858 FirmwarePlugin
59+ Gimbal
5960 Settings
6061 Utilities
6162 Vehicle
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ qt_add_library(Settings STATIC
2323 FlightModeSettings.h
2424 FlyViewSettings.cc
2525 FlyViewSettings.h
26+ GimbalControllerSettings.cc
27+ GimbalControllerSettings.h
2628 OfflineMapsSettings.cc
2729 OfflineMapsSettings.h
2830 PlanViewSettings.cc
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ target_link_libraries(Vehicle
5353 Qt6::Positioning
5454 Comms
5555 FactSystem
56+ Gimbal
5657 LibEventsWrapper
5758 MAVLink
5859 MissionManager
You can’t perform that action at this time.
0 commit comments