diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index 3cb307351e9e0b38743e0fd3520bcc17a2973514..46942b65a9ed66fc91dbd298a9d5dd4033601fa0 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -200,7 +200,8 @@ HEADERS += src/MG.h \ src/ui/map3D/TextureCache.h \ src/ui/map3D/WebImage.h \ src/ui/map3D/WebImageCache.h \ - src/ui/map3D/Imagery.h + src/ui/map3D/Imagery.h \ + src/comm/QGCMAVlink.h SOURCES += src/main.cc \ src/Core.cc \ src/uas/UASManager.cc \ diff --git a/src/comm/MAVLinkLightProtocol.h b/src/comm/MAVLinkLightProtocol.h index 60253fbbd201d5c4e7856c1c2e51989644b1c21a..12db0a3c48bc4df636b721eaad8f6a10e18bd3c0 100644 --- a/src/comm/MAVLinkLightProtocol.h +++ b/src/comm/MAVLinkLightProtocol.h @@ -2,7 +2,7 @@ QGroundControl Open Source Ground Control Station -(c) 2009, 2010 QGROUNDCONTROL PROJECT +(c) 2009 - 2011 QGROUNDCONTROL PROJECT This file is part of the QGROUNDCONTROL project diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index e2184f3bf86509ae2baa476f7be529c03271b645..5cedb4d88cd31ebfa0a10865ad6c583094eaf56b 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -45,7 +45,7 @@ This file is part of the QGROUNDCONTROL project #include "ArduPilotMAV.h" #include "configuration.h" #include "LinkManager.h" -#include +#include #include "QGC.h" /** diff --git a/src/comm/MAVLinkProtocol.h b/src/comm/MAVLinkProtocol.h index 73bd6cd61d944e1a9d889db612cc100e6bb0eaa8..b885cdedfade4789093da23f141ec39c89db7dcd 100644 --- a/src/comm/MAVLinkProtocol.h +++ b/src/comm/MAVLinkProtocol.h @@ -40,7 +40,7 @@ This file is part of the QGROUNDCONTROL project #include "ProtocolInterface.h" #include "LinkInterface.h" #include "protocol.h" -#include "mavlink.h" +#include "QGCMAVlink.h" /** * @brief MAVLink micro air vehicle protocol reference implementation. diff --git a/src/comm/MAVLinkSimulationLink.cc b/src/comm/MAVLinkSimulationLink.cc index 334773c5fb12fa6287e826fdc571d37a1fbf664a..b5e2096a5410e3fd46e7c1f9685a45830723d83c 100644 --- a/src/comm/MAVLinkSimulationLink.cc +++ b/src/comm/MAVLinkSimulationLink.cc @@ -41,7 +41,7 @@ This file is part of the QGROUNDCONTROL project #include "MAVLinkProtocol.h" #include "MAVLinkSimulationLink.h" // MAVLINK includes -#include +#include #include "QGC.h" /** diff --git a/src/comm/MAVLinkSimulationLink.h b/src/comm/MAVLinkSimulationLink.h index 63574b3adac5589a8a8151c2a8c781903fe44df9..49cc4d5c028bd36b3a9432a86fc43cb3b719c96c 100644 --- a/src/comm/MAVLinkSimulationLink.h +++ b/src/comm/MAVLinkSimulationLink.h @@ -39,7 +39,7 @@ This file is part of the QGROUNDCONTROL project #include #include #include -#include +#include "QGCMAVLink.h" #include "LinkInterface.h" diff --git a/src/comm/OpalLink.h b/src/comm/OpalLink.h index f72ba9d23b3da4c29d9b36f1e73bcb8d31ff7184..27fe685df06ced81474b18704ec2d7eead5c45c7 100644 --- a/src/comm/OpalLink.h +++ b/src/comm/OpalLink.h @@ -43,8 +43,7 @@ This file is part of the QGROUNDCONTROL project #include "LinkInterface.h" #include "LinkManager.h" #include "MG.h" -#include "mavlink.h" -#include "mavlink_types.h" +#include "QGCMAVLink.h" #include "configuration.h" #include "OpalRT.h" #include "ParameterList.h" diff --git a/src/comm/QGCMAVlink.h b/src/comm/QGCMAVlink.h new file mode 100644 index 0000000000000000000000000000000000000000..171a6ebf6ff7a654cd9e23049fde766fce6bd060 --- /dev/null +++ b/src/comm/QGCMAVlink.h @@ -0,0 +1,51 @@ +/*===================================================================== + +QGroundControl Open Source Ground Control Station + +(c) 2009 - 2011 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + QGROUNDCONTROL is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with QGROUNDCONTROL. If not, see . + +======================================================================*/ + +/** + * @file + * @brief MAVLink header file for QGroundControl + * @author Lorenz Meier + */ + +#ifndef QGCMAVLINK_H +#define QGCMAVLINK_H + +#include + +#ifdef QGC_USE_PIXHAWK_MESSAGES +#include +#endif + +#ifdef QGC_USE_SLUGS_MESSAGES +#include +#endif + +#ifdef QGC_USE_UALBERTA_MESSAGES +#include +#endif + +#ifdef QGC_USE_ARDUPILOT_MESSAGES +#include +#endif + +#endif // QGCMAVLINK_H diff --git a/src/comm/QGCParamID.h b/src/comm/QGCParamID.h index 90cf2fcff92727946fca1212263dfd7253fe6fde..2710cef0ffef416352970644b7a261f2cb7b3523 100644 --- a/src/comm/QGCParamID.h +++ b/src/comm/QGCParamID.h @@ -2,7 +2,7 @@ QGroundControl Open Source Ground Control Station -(c) 2009, 2010 QGROUNDCONTROL PROJECT +(c) 2009 - 2011 QGROUNDCONTROL PROJECT This file is part of the QGROUNDCONTROL project diff --git a/src/comm/SerialLink.h b/src/comm/SerialLink.h index b20f6d3ceda24c8af1d0b4de1ec70293de9d3cae..dce2386e06d5132831a94022c23028fa144a9185 100644 --- a/src/comm/SerialLink.h +++ b/src/comm/SerialLink.h @@ -1,24 +1,24 @@ /*===================================================================== - -PIXHAWK Micro Air Vehicle Flying Robotics Toolkit - -(c) 2009 PIXHAWK PROJECT - -This file is part of the PIXHAWK project - - PIXHAWK is free software: you can redistribute it and/or modify + +QGroundControl Open Source Ground Control Station + +(c) 2009 - 2011 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - - PIXHAWK is distributed in the hope that it will be useful, + + QGROUNDCONTROL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with PIXHAWK. If not, see . - + along with QGROUNDCONTROL. If not, see . + ======================================================================*/ /** diff --git a/src/comm/SerialLinkInterface.h b/src/comm/SerialLinkInterface.h index 5538f1d96b31199ffaa613da5fe50c325167d239..22e00a8615a11df20fc7d99606a9c006962911cb 100644 --- a/src/comm/SerialLinkInterface.h +++ b/src/comm/SerialLinkInterface.h @@ -1,24 +1,24 @@ /*===================================================================== - -PIXHAWK Micro Air Vehicle Flying Robotics Toolkit - -(c) 2009 PIXHAWK PROJECT - -This file is part of the PIXHAWK project - - PIXHAWK is free software: you can redistribute it and/or modify + +QGroundControl Open Source Ground Control Station + +(c) 2009 - 2011 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - - PIXHAWK is distributed in the hope that it will be useful, + + QGROUNDCONTROL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with PIXHAWK. If not, see . - + along with QGROUNDCONTROL. If not, see . + ======================================================================*/ /** diff --git a/src/comm/SerialSimulationLink.h b/src/comm/SerialSimulationLink.h index 4a95a47571e54b8d4fbf7f58a0e02c980a8566c8..35f29520006f854fefe4c613c0eb58423aef3648 100644 --- a/src/comm/SerialSimulationLink.h +++ b/src/comm/SerialSimulationLink.h @@ -1,24 +1,24 @@ /*===================================================================== - -PIXHAWK Micro Air Vehicle Flying Robotics Toolkit - -(c) 2009 PIXHAWK PROJECT - -This file is part of the PIXHAWK project - - PIXHAWK is free software: you can redistribute it and/or modify + +QGroundControl Open Source Ground Control Station + +(c) 2009 - 2011 QGROUNDCONTROL PROJECT + +This file is part of the QGROUNDCONTROL project + + QGROUNDCONTROL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - - PIXHAWK is distributed in the hope that it will be useful, + + QGROUNDCONTROL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with PIXHAWK. If not, see . - + along with QGROUNDCONTROL. If not, see . + ======================================================================*/ /** diff --git a/src/comm/UDPLink.h b/src/comm/UDPLink.h index 704020e889d3662658e52ab4206ff5523d86c39d..6682aae0009792707992105c639b91e1395b865a 100644 --- a/src/comm/UDPLink.h +++ b/src/comm/UDPLink.h @@ -1,23 +1,23 @@ /*===================================================================== -PIXHAWK Micro Air Vehicle Flying Robotics Toolkit +QGroundControl Open Source Ground Control Station -(c) 2009 PIXHAWK PROJECT +(c) 2009 - 2011 QGROUNDCONTROL PROJECT -This file is part of the PIXHAWK project +This file is part of the QGROUNDCONTROL project - PIXHAWK is free software: you can redistribute it and/or modify + QGROUNDCONTROL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - PIXHAWK is distributed in the hope that it will be useful, + QGROUNDCONTROL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with PIXHAWK. If not, see . + along with QGROUNDCONTROL. If not, see . ======================================================================*/ diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 9e61d2c5c7706c6795702401476fc4636c1a4526..5c23d739ec25c1a9ce8260f71e933bc0f3c83364 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -42,7 +42,7 @@ This file is part of the QGROUNDCONTROL project #include "QGC.h" #include "GAudioOutput.h" #include "MAVLinkProtocol.h" -#include +#include "QGCMAVLink.h" UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), uasId(id), diff --git a/src/uas/UAS.h b/src/uas/UAS.h index 08694ce1ce59d1d3f1c08b743e4263f164b41762..9c2ef9a3beeef15b7155fe12537d291bd0c9dbd8 100644 --- a/src/uas/UAS.h +++ b/src/uas/UAS.h @@ -35,7 +35,7 @@ This file is part of the QGROUNDCONTROL project #include "UASInterface.h" #include "MG.h" #include -#include +#include "QGCMAVLink.h" /** * @brief A generic MAVLINK-connected MAV/UAV diff --git a/src/uas/UASWaypointManager.h b/src/uas/UASWaypointManager.h index b0e4e3ee87e860f0c6c9aa92be5fa266624fe8b1..a16c8d3fe9a433a2af487b62f1da8751f042ab7d 100644 --- a/src/uas/UASWaypointManager.h +++ b/src/uas/UASWaypointManager.h @@ -36,7 +36,7 @@ This file is part of the QGROUNDCONTROL project #include #include #include "Waypoint.h" -#include +#include "QGCMAVLink.h" class UAS; /** diff --git a/src/ui/map3D/QMap3DWidget.cc b/src/ui/map3D/QMap3DWidget.cc index de3d32e83220ca073e37fb375451e8b19f624e2c..e8b7b679e27ec29fe5edf9b44d74c911c6e8190e 100644 --- a/src/ui/map3D/QMap3DWidget.cc +++ b/src/ui/map3D/QMap3DWidget.cc @@ -273,7 +273,6 @@ QMap3DWidget::displayHandler(void) 5, &painter); painter.end(); - repaint(); } void QMap3DWidget::drawWaypoints(void) const diff --git a/src/ui/uas/UASControlWidget.cc b/src/ui/uas/UASControlWidget.cc index 3ca8f294cf528d294c061cfe53cfdd186bb614d4..647b6831f842de6ea7a1d715dd74536fca2232fc 100644 --- a/src/ui/uas/UASControlWidget.cc +++ b/src/ui/uas/UASControlWidget.cc @@ -41,7 +41,6 @@ This file is part of the PIXHAWK project #include "UASControlWidget.h" #include #include -//#include #define CONTROL_MODE_LOCKED "MODE LOCKED" #define CONTROL_MODE_MANUAL "MODE MANUAL" diff --git a/user_config.pri.dist b/user_config.pri.dist index 54de63c454d65eaea80904829137748139d91b56..c4c046dd435f36243667c7717a78fe6d5cf66c80 100644 --- a/user_config.pri.dist +++ b/user_config.pri.dist @@ -27,7 +27,18 @@ # Several message sets can be also enabled in parallel, as long as function names # and message ids do not conflict. -INCLUDEPATH += $$BASEDIR/../mavlink/include/pixhawk -#INCLUDEPATH += $$BASEDIR/../mavlink/include/slugs -#INCLUDEPATH += $$BASEDIR/../mavlink/include/ualberta +# Remove the default set - it is included anyway INCLUDEPATH -= $$BASEDIR/../mavlink/include/common + +# PIXHAWK SPECIAL MESSAGES +INCLUDEPATH += $$BASEDIR/../mavlink/include/pixhawk +DEFINES += QGC_USE_PIXHAWK_MESSAGES + +# SLUGS SPECIAL MESSAGES +INCLUDEPATH += $$BASEDIR/../mavlink/include/slugs +DEFINES += QGC_USE_SLUGS_MESSAGES + +# UALBERTA SPECIAL MESSAGES +INCLUDEPATH += $$BASEDIR/../mavlink/include/ualberta +DEFINES += QGC_USE_UALBERTA_MESSAGES +