Browse Source

-Waddress-of-packed-member build error fix

Also fixed custom build
QGC4.4
Aleksey Kontsevich 5 years ago
parent
commit
abb96a4e7c
  1. 2
      custom-example/custom.pri
  2. 1
      custom-example/src/FirmwarePlugin/CustomFirmwarePlugin.cc
  3. 5
      src/Vehicle/Vehicle.h
  4. 5
      src/uas/UAS.h

2
custom-example/custom.pri

@ -42,7 +42,7 @@ DEFINES += QGC_ORG_NAME=\"\\\"qgroundcontrol.org\\\"\" @@ -42,7 +42,7 @@ DEFINES += QGC_ORG_NAME=\"\\\"qgroundcontrol.org\\\"\"
DEFINES += QGC_ORG_DOMAIN=\"\\\"org.qgroundcontrol\\\"\"
QGC_APP_NAME = "Custom QGroundControl"
QGC_BINARY_NAME = "CustomQGroundControl"
QGC_BINARY_NAME = "MyGroundStation"
QGC_ORG_NAME = "Custom"
QGC_ORG_DOMAIN = "org.custom"
QGC_APP_DESCRIPTION = "Custom QGroundControl"

1
custom-example/src/FirmwarePlugin/CustomFirmwarePlugin.cc

@ -52,4 +52,5 @@ bool CustomFirmwarePlugin::hasGimbal(Vehicle* /*vehicle*/, bool& rollSupported, @@ -52,4 +52,5 @@ bool CustomFirmwarePlugin::hasGimbal(Vehicle* /*vehicle*/, bool& rollSupported,
rollSupported = false;
pitchSupported = true;
yawSupported = true;
return true;
}

5
src/Vehicle/Vehicle.h

@ -9,6 +9,11 @@ @@ -9,6 +9,11 @@
#pragma once
#if __GNUC__ > 8
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#endif
#include <QElapsedTimer>
#include <QObject>
#include <QVariantList>

5
src/uas/UAS.h

@ -13,6 +13,11 @@ @@ -13,6 +13,11 @@
#pragma once
#if __GNUC__ > 8
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#endif
#include "UASInterface.h"
#include <MAVLinkProtocol.h>
#include <QVector3D>

Loading…
Cancel
Save