Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e1b1557e
Commit
e1b1557e
authored
May 15, 2012
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mavlink/qgroundcontrol
parents
153dcf5e
c4bc93c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
57 deletions
+11
-57
qgroundcontrol.pro
qgroundcontrol.pro
+9
-43
QGCMAVLink.h
src/comm/QGCMAVLink.h
+2
-14
No files found.
qgroundcontrol.pro
View file @
e1b1557e
...
@@ -92,58 +92,24 @@ INCLUDEPATH += \
...
@@ -92,58 +92,24 @@ INCLUDEPATH += \
#
If
the
user
config
file
exists
,
it
will
be
included
.
#
If
the
user
config
file
exists
,
it
will
be
included
.
#
if
the
variable
MAVLINK_CONF
contains
the
name
of
an
#
if
the
variable
MAVLINK_CONF
contains
the
name
of
an
#
additional
project
,
QGroundControl
includes
the
support
#
additional
project
,
QGroundControl
includes
the
support
#
of
custom
MAVLink
messages
of
this
project
#
of
custom
MAVLink
messages
of
this
project
.
It
will
also
#
create
a
QGC_USE_
{
AUTOPILOT_NAME
}
_MESSAGES
macro
for
use
#
within
the
actual
code
.
exists
(
user_config
.
pri
)
{
exists
(
user_config
.
pri
)
{
include
(
user_config
.
pri
)
include
(
user_config
.
pri
)
message
(
"----- USING CUSTOM USER QGROUNDCONTROL CONFIG FROM user_config.pri -----"
)
message
(
"----- USING CUSTOM USER QGROUNDCONTROL CONFIG FROM user_config.pri -----"
)
message
(
"Adding support for additional MAVLink messages for: "
$$
MAVLINK_CONF
)
message
(
"Adding support for additional MAVLink messages for: "
$$
MAVLINK_CONF
)
message
(
"------------------------------------------------------------------------"
)
message
(
"------------------------------------------------------------------------"
)
}
}
INCLUDEPATH
+=
$$
MAVLINKPATH
/
common
INCLUDEPATH
+=
$$
MAVLINKPATH
INCLUDEPATH
+=
$$
MAVLINKPATH
contains
(
MAVLINK_CONF
,
pixhawk
)
{
isEmpty
(
MAVLINK_CONF
)
{
#
Remove
the
default
set
-
it
is
included
anyway
INCLUDEPATH
+=
$$
MAVLINKPATH
/
common
INCLUDEPATH
-=
$$
MAVLINKPATH
/
common
}
else
{
INCLUDEPATH
+=
$$
MAVLINKPATH
/
$$
MAVLINK_CONF
#
PIXHAWK
SPECIAL
MESSAGES
DEFINES
+=
'MAVLINK_CONF="$${MAVLINK_CONF}.h"'
INCLUDEPATH
+=
$$
MAVLINKPATH
/
pixhawk
DEFINES
+=
$$
sprintf
(
'QGC_USE_%1_MESSAGES'
,
$$
upper
(
$$
MAVLINK_CONF
))
DEFINES
+=
QGC_USE_PIXHAWK_MESSAGES
}
contains
(
MAVLINK_CONF
,
slugs
)
{
#
Remove
the
default
set
-
it
is
included
anyway
INCLUDEPATH
-=
$$
MAVLINKPATH
/
common
#
SLUGS
SPECIAL
MESSAGES
INCLUDEPATH
+=
$$
MAVLINKPATH
/
slugs
DEFINES
+=
QGC_USE_SLUGS_MESSAGES
}
contains
(
MAVLINK_CONF
,
ualberta
)
{
#
Remove
the
default
set
-
it
is
included
anyway
INCLUDEPATH
-=
$$
MAVLINKPATH
/
common
#
UALBERTA
SPECIAL
MESSAGES
INCLUDEPATH
+=
$$
MAVLINKPATH
/
ualberta
DEFINES
+=
QGC_USE_UALBERTA_MESSAGES
}
contains
(
MAVLINK_CONF
,
ardupilotmega
)
{
#
Remove
the
default
set
-
it
is
included
anyway
INCLUDEPATH
-=
$$
MAVLINKPATH
/
common
INCLUDEPATH
-=
$$
BASEDIR
/
mavlink
/
include
/
v1
.
0
/
common
#
UALBERTA
SPECIAL
MESSAGES
INCLUDEPATH
+=
$$
MAVLINKPATH
/
ardupilotmega
DEFINES
+=
QGC_USE_ARDUPILOTMEGA_MESSAGES
}
contains
(
MAVLINK_CONF
,
senseSoar
)
{
#
Remove
the
default
set
-
it
is
included
anyway
INCLUDEPATH
-=
$$
MAVLINKPATH
/
common
#
SENSESOAR
SPECIAL
MESSAGES
INCLUDEPATH
+=
$$
MAVLINKPATH
/
SenseSoar
DEFINES
+=
QGC_USE_SENSESOAR_MESSAGES
}
}
#
Include
general
settings
for
QGroundControl
#
Include
general
settings
for
QGroundControl
#
necessary
as
last
include
to
override
any
non
-
acceptable
settings
#
necessary
as
last
include
to
override
any
non
-
acceptable
settings
#
done
by
the
plugins
above
#
done
by
the
plugins
above
...
...
src/comm/QGCMAVLink.h
View file @
e1b1557e
...
@@ -33,20 +33,8 @@ This file is part of the QGROUNDCONTROL project
...
@@ -33,20 +33,8 @@ This file is part of the QGROUNDCONTROL project
#include <mavlink_types.h>
#include <mavlink_types.h>
#include <mavlink.h>
#include <mavlink.h>
#ifdef QGC_USE_PIXHAWK_MESSAGES
#ifdef MAVLINK_CONF
#include <pixhawk.h>
#include MAVLINK_CONF
#endif
#ifdef QGC_USE_SLUGS_MESSAGES
#include <slugs.h>
#endif
#ifdef QGC_USE_UALBERTA_MESSAGES
#include <ualberta.h>
#endif
#ifdef QGC_USE_ARDUPILOTMEGA_MESSAGES
#include <ardupilotmega.h>
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment