|
|
|
@ -33,8 +33,8 @@ QT += network \
@@ -33,8 +33,8 @@ QT += network \
|
|
|
|
|
phonon |
|
|
|
|
TEMPLATE = app |
|
|
|
|
TARGET = qgroundcontrol |
|
|
|
|
BASEDIR = . |
|
|
|
|
BUILDDIR = build |
|
|
|
|
BASEDIR = $$IN_PWD |
|
|
|
|
BUILDDIR = $$OUT_PWD/build |
|
|
|
|
LANGUAGE = C++ |
|
|
|
|
CONFIG += debug_and_release \ |
|
|
|
|
console |
|
|
|
@ -42,9 +42,17 @@ OBJECTS_DIR = $$BUILDDIR/obj
@@ -42,9 +42,17 @@ OBJECTS_DIR = $$BUILDDIR/obj
|
|
|
|
|
MOC_DIR = $$BUILDDIR/moc |
|
|
|
|
UI_HEADERS_DIR = src/ui/generated |
|
|
|
|
MAVLINK_CONF = "" |
|
|
|
|
|
|
|
|
|
# If the user config file exists, it will be included. |
|
|
|
|
# if the variable MAVLINK_CONF contains the name of an |
|
|
|
|
# additional project, QGroundControl includes the support |
|
|
|
|
# of custom MAVLink messages of this project |
|
|
|
|
|
|
|
|
|
exists(user_config.pri) { |
|
|
|
|
message("----- USING USER QGROUNDCONTROL CONFIG FROM user_config.pri -----") |
|
|
|
|
include(user_config.pri) |
|
|
|
|
message("----- USING CUSTOM USER QGROUNDCONTROL CONFIG FROM user_config.pri -----") |
|
|
|
|
message("Adding support for additional MAVLink messages for: " $$MAVLINK_CONF) |
|
|
|
|
message("------------------------------------------------------------------------") |
|
|
|
|
} |
|
|
|
|
INCLUDEPATH += $$BASEDIR/../mavlink/include/common |
|
|
|
|
contains(MAVLINK_CONF, pixhawk) { |
|
|
|
@ -71,11 +79,14 @@ contains(MAVLINK_CONF, ualberta) {
@@ -71,11 +79,14 @@ contains(MAVLINK_CONF, ualberta) {
|
|
|
|
|
INCLUDEPATH += $$BASEDIR/../mavlink/include/ualberta |
|
|
|
|
DEFINES += QGC_USE_UALBERTA_MESSAGES |
|
|
|
|
} |
|
|
|
|
contains(MAVLINK_CONF, ardupilotmega) { |
|
|
|
|
# Remove the default set - it is included anyway |
|
|
|
|
INCLUDEPATH -= $$BASEDIR/../mavlink/include/common |
|
|
|
|
|
|
|
|
|
# Include OpenSceneGraph and osgEarth libraries |
|
|
|
|
LIBS += -losg \ |
|
|
|
|
-losgViewer \ |
|
|
|
|
-losgEarth |
|
|
|
|
# UALBERTA SPECIAL MESSAGES |
|
|
|
|
INCLUDEPATH += $$BASEDIR/../mavlink/include/ardupilotmega |
|
|
|
|
DEFINES += QGC_USE_ARDUPILOTMEGA_MESSAGES |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# } |
|
|
|
|
# Include general settings for MAVGround |
|
|
|
@ -218,12 +229,18 @@ HEADERS += src/MG.h \
@@ -218,12 +229,18 @@ HEADERS += src/MG.h \
|
|
|
|
|
src/ui/RadioCalibration/SwitchCalibrator.h \ |
|
|
|
|
src/ui/RadioCalibration/CurveCalibrator.h \ |
|
|
|
|
src/ui/RadioCalibration/AbstractCalibrator.h \ |
|
|
|
|
src/ui/map3D/Q3DWidget.h \ |
|
|
|
|
src/comm/QGCMAVLink.h |
|
|
|
|
|
|
|
|
|
contains(DEPENDENCIES_PRESENT, osgearth) { |
|
|
|
|
message("Including headers for OSGEARTH") |
|
|
|
|
# Enable only if OpenSceneGraph is available |
|
|
|
|
HEADERS += src/ui/map3D/Q3DWidget.h \ |
|
|
|
|
src/ui/map3D/PixhawkCheetahGeode.h \ |
|
|
|
|
src/comm/QGCMAVLink.h \ |
|
|
|
|
src/ui/map3D/Pixhawk3DWidget.h \ |
|
|
|
|
src/ui/map3D/Q3DWidgetFactory.h \ |
|
|
|
|
src/ui/map3D/GCManipulator.h |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
SOURCES += src/main.cc \ |
|
|
|
|
src/Core.cc \ |
|
|
|
|
src/uas/UASManager.cc \ |
|
|
|
@ -294,12 +311,17 @@ SOURCES += src/main.cc \
@@ -294,12 +311,17 @@ SOURCES += src/main.cc \
|
|
|
|
|
src/ui/RadioCalibration/AbstractCalibrator.cc \ |
|
|
|
|
src/ui/RadioCalibration/RadioCalibrationData.cc \ |
|
|
|
|
#src/ui/WaypointGlobalView.cc \ |
|
|
|
|
src/ui/map3D/Q3DWidget.cc \ |
|
|
|
|
|
|
|
|
|
contains(DEPENDENCIES_PRESENT, osgearth) { |
|
|
|
|
message("Including sources for OSGEARTH") |
|
|
|
|
# Enable only if OpenSceneGraph is available |
|
|
|
|
SOURCES += src/ui/map3D/Q3DWidget.cc \ |
|
|
|
|
src/ui/map3D/PixhawkCheetahGeode.cc \ |
|
|
|
|
src/ui/map3D/Pixhawk3DWidget.cc \ |
|
|
|
|
src/ui/map3D/Q3DWidgetFactory.cc \ |
|
|
|
|
src/ui/map3D/GCManipulator.cc |
|
|
|
|
RESOURCES = mavground.qrc |
|
|
|
|
} |
|
|
|
|
RESOURCES += mavground.qrc |
|
|
|
|
|
|
|
|
|
# Include RT-LAB Library |
|
|
|
|
win32:exists(src/lib/opalrt/OpalApi.h):exists(C:\OPAL-RT\RT-LAB7.2.4\Common\bin) { |
|
|
|
|