Browse Source

Invert QGC_ENABLE_MAVLINK_INSPECTOR

Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
QGC4.4
Lukas Bachschwell 4 years ago committed by Don Gagne
parent
commit
cef99254c8
  1. 4
      CMakeLists.txt
  2. 6
      QGCCommon.pri
  3. 5
      qgroundcontrol.pro
  4. 6
      src/QGCApplication.cc
  5. 6
      src/QmlControls/QGroundControlQmlGlobal.h
  6. 2
      src/api/QGCCorePlugin.cc

4
CMakeLists.txt

@ -117,10 +117,6 @@ else() @@ -117,10 +117,6 @@ else()
endif()
endif()
add_definitions(
-DQGC_ENABLE_MAVLINK_INSPECTOR
)
#=============================================================================
# Qt5
#

6
QGCCommon.pri

@ -28,7 +28,6 @@ linux { @@ -28,7 +28,6 @@ linux {
DEFINES += __STDC_LIMIT_MACROS
DEFINES += QGC_GST_TAISYNC_ENABLED
DEFINES += QGC_GST_MICROHARD_ENABLED
DEFINES += QGC_ENABLE_MAVLINK_INSPECTOR
linux-clang {
message("Linux clang")
QMAKE_CXXFLAGS += -Qunused-arguments -fcolor-diagnostics
@ -62,11 +61,9 @@ linux { @@ -62,11 +61,9 @@ linux {
target.path = $$DESTDIR
equals(ANDROID_TARGET_ARCH, armeabi-v7a) {
DEFINES += __androidArm32__
DEFINES += QGC_ENABLE_MAVLINK_INSPECTOR
message("Android Arm 32 bit build")
} else:equals(ANDROID_TARGET_ARCH, arm64-v8a) {
DEFINES += __androidArm64__
DEFINES += QGC_ENABLE_MAVLINK_INSPECTOR
message("Android Arm 64 bit build")
} else:equals(ANDROID_TARGET_ARCH, x86) {
CONFIG += Androidx86Build
@ -85,7 +82,6 @@ linux { @@ -85,7 +82,6 @@ linux {
DEFINES += __STDC_LIMIT_MACROS
DEFINES += QGC_GST_TAISYNC_ENABLED
DEFINES += QGC_GST_MICROHARD_ENABLED
DEFINES += QGC_ENABLE_MAVLINK_INSPECTOR
QMAKE_CFLAGS -= -Zc:strictStrings
QMAKE_CFLAGS_RELEASE -= -Zc:strictStrings
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -Zc:strictStrings
@ -108,7 +104,6 @@ linux { @@ -108,7 +104,6 @@ linux {
CONFIG -= x86
DEFINES += QGC_GST_TAISYNC_ENABLED
DEFINES += QGC_GST_MICROHARD_ENABLED
DEFINES += QGC_ENABLE_MAVLINK_INSPECTOR
equals(QT_MAJOR_VERSION, 5) | greaterThan(QT_MINOR_VERSION, 5) {
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
} else {
@ -132,7 +127,6 @@ linux { @@ -132,7 +127,6 @@ linux {
DEFINES += NO_SERIAL_LINK
DEFINES += QGC_DISABLE_UVC
DEFINES += QGC_GST_TAISYNC_ENABLED
DEFINES += QGC_ENABLE_MAVLINK_INSPECTOR
QMAKE_IOS_DEPLOYMENT_TARGET = 11.0
QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2 # Universal
QMAKE_LFLAGS += -Wl,-no_pie

5
qgroundcontrol.pro

@ -1237,7 +1237,10 @@ SOURCES += \ @@ -1237,7 +1237,10 @@ SOURCES += \
#-------------------------------------------------------------------------------------
# MAVLink Inspector
contains (DEFINES, QGC_ENABLE_MAVLINK_INSPECTOR) {
contains (DEFINES, QGC_DISABLE_MAVLINK_INSPECTOR) {
message("Disable mavlink inspector")
} else {
HEADERS += \
src/AnalyzeView/MAVLinkInspectorController.h
SOURCES += \

6
src/QGCApplication.cc

@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
#include "VideoManager.h"
#include "VideoReceiver.h"
#include "LogDownloadController.h"
#if defined(QGC_ENABLE_MAVLINK_INSPECTOR)
#if !defined(QGC_DISABLE_MAVLINK_INSPECTOR)
#include "MAVLinkInspectorController.h"
#endif
#include "HorizontalFactValueGrid.h"
@ -544,7 +544,7 @@ void QGCApplication::_initCommon() @@ -544,7 +544,7 @@ void QGCApplication::_initCommon()
qmlRegisterUncreatableType<LogReplayLink> (kQGroundControl, 1, 0, "LogReplayLink", kRefOnly);
qmlRegisterUncreatableType<InstrumentValueData> (kQGroundControl, 1, 0, "InstrumentValueData", kRefOnly);
qmlRegisterType<LogReplayLinkController> (kQGroundControl, 1, 0, "LogReplayLinkController");
#if defined(QGC_ENABLE_MAVLINK_INSPECTOR)
#if !defined(QGC_DISABLE_MAVLINK_INSPECTOR)
qmlRegisterUncreatableType<MAVLinkChartController> (kQGroundControl, 1, 0, "MAVLinkChart", kRefOnly);
#endif
#if defined(QGC_ENABLE_PAIRING)
@ -590,7 +590,7 @@ void QGCApplication::_initCommon() @@ -590,7 +590,7 @@ void QGCApplication::_initCommon()
#endif
qmlRegisterType<GeoTagController> (kQGCControllers, 1, 0, "GeoTagController");
qmlRegisterType<MavlinkConsoleController> (kQGCControllers, 1, 0, "MavlinkConsoleController");
#if defined(QGC_ENABLE_MAVLINK_INSPECTOR)
#if !defined(QGC_DISABLE_MAVLINK_INSPECTOR)
qmlRegisterType<MAVLinkInspectorController> (kQGCControllers, 1, 0, "MAVLinkInspectorController");
#endif

6
src/QmlControls/QGroundControlQmlGlobal.h

@ -201,10 +201,10 @@ public: @@ -201,10 +201,10 @@ public:
bool hasAPMSupport () { return true; }
#endif
#if defined(QGC_ENABLE_MAVLINK_INSPECTOR)
bool hasMAVLinkInspector () { return true; }
#else
#if defined(QGC_DISABLE_MAVLINK_INSPECTOR)
bool hasMAVLinkInspector () { return false; }
#else
bool hasMAVLinkInspector () { return true; }
#endif
bool singleFirmwareSupport ();

2
src/api/QGCCorePlugin.cc

@ -195,7 +195,7 @@ QVariantList& QGCCorePlugin::analyzePages() @@ -195,7 +195,7 @@ QVariantList& QGCCorePlugin::analyzePages()
_p->analyzeList.append(QVariant::fromValue(new QmlComponentInfo(tr("GeoTag Images"), QUrl::fromUserInput("qrc:/qml/GeoTagPage.qml"), QUrl::fromUserInput("qrc:/qmlimages/GeoTagIcon"))));
#endif
_p->analyzeList.append(QVariant::fromValue(new QmlComponentInfo(tr("MAVLink Console"), QUrl::fromUserInput("qrc:/qml/MavlinkConsolePage.qml"), QUrl::fromUserInput("qrc:/qmlimages/MavlinkConsoleIcon"))));
#if defined(QGC_ENABLE_MAVLINK_INSPECTOR)
#if !defined(QGC_DISABLE_MAVLINK_INSPECTOR)
_p->analyzeList.append(QVariant::fromValue(new QmlComponentInfo(tr("MAVLink Inspector"),QUrl::fromUserInput("qrc:/qml/MAVLinkInspectorPage.qml"), QUrl::fromUserInput("qrc:/qmlimages/MAVLinkInspector"))));
#endif
_p->analyzeList.append(QVariant::fromValue(new QmlComponentInfo(tr("Vibration"), QUrl::fromUserInput("qrc:/qml/VibrationPage.qml"), QUrl::fromUserInput("qrc:/qmlimages/VibrationPageIcon"))));

Loading…
Cancel
Save