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
96947527
Commit
96947527
authored
Aug 20, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented/cleaned up code
parent
6961315f
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
235 additions
and
75 deletions
+235
-75
Core.cc
src/Core.cc
+6
-7
GAudioOutput.cc
src/GAudioOutput.cc
+6
-6
LogCompressor.cc
src/LogCompressor.cc
+30
-0
QGC.cc
src/QGC.cc
+23
-0
Waypoint.cc
src/Waypoint.cc
+6
-6
MAVLinkProtocol.cc
src/comm/MAVLinkProtocol.cc
+8
-11
MAVLinkProtocol.h
src/comm/MAVLinkProtocol.h
+12
-12
MAVLinkXMLParser.cc
src/comm/MAVLinkXMLParser.cc
+32
-20
MAVLinkXMLParser.h
src/comm/MAVLinkXMLParser.h
+36
-0
OpalLink.cc
src/comm/OpalLink.cc
+29
-0
OpalLink.h
src/comm/OpalLink.h
+39
-6
main.cc
src/main.cc
+6
-6
MapWidget.h
src/ui/MapWidget.h
+2
-1
No files found.
src/Core.cc
View file @
96947527
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
QGroundControl Open Source Ground Control Station
(c) 2009, 2010
PIXHAWK PROJECT <http://pixhawk.ethz.ch
>
(c) 2009, 2010
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org
>
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 <http://www.gnu.org/licenses/>.
along with
QGROUNDCONTROL
. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
...
...
@@ -29,7 +29,6 @@ This file is part of the PIXHAWK project
*
*/
#include <QFile>
#include <QFlags>
#include <QThread>
...
...
src/GAudioOutput.cc
View file @
96947527
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
QGroundControl Open Source Ground Control Station
(c) 2009, 2010
PIXHAWK PROJECT <http://pixhawk.ethz.ch
>
(c) 2009, 2010
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org
>
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 <http://www.gnu.org/licenses/>.
along with
QGROUNDCONTROL
. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
...
...
src/LogCompressor.cc
View file @
96947527
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
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 <http://www.gnu.org/licenses/>.
======================================================================*/
/**
* @file
* @brief Implementation of class LogCompressor
* @author Lorenz Meier <mavteam@student.ethz.ch>
*
*/
#include <QFile>
#include <QTextStream>
#include <QStringList>
...
...
src/QGC.cc
View file @
96947527
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
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 <http://www.gnu.org/licenses/>.
======================================================================*/
#include "QGC.h"
namespace
QGC
{
...
...
src/Waypoint.cc
View file @
96947527
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
QGroundControl Open Source Ground Control Station
(c) 2009, 2010
PIXHAWK PROJECT <http://pixhawk.ethz.ch
>
(c) 2009, 2010
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org
>
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 <http://www.gnu.org/licenses/>.
along with
QGROUNDCONTROL
. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
...
...
src/comm/MAVLinkProtocol.cc
View file @
96947527
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
Please see our website at <http://pixhawk.ethz.ch>
QGroundControl Open Source Ground Control Station
(c) 2009, 2010
PIXHAWK PROJECT <http://pixhawk.ethz.ch
>
(c) 2009, 2010
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org
>
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 <http://www.gnu.org/licenses/>.
along with
QGROUNDCONTROL
. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
/**
* @file
* @brief Implementation of the MAVLink protocol
*
* @author Lorenz Meier <mavteam@student.ethz.ch>
*
* @brief Implementation of class MAVLinkProtocol
* @author Lorenz Meier <mail@qgroundcontrol.org>
*/
#include <inttypes.h>
...
...
src/comm/MAVLinkProtocol.h
View file @
96947527
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
Please see our website at <http://pixhawk.ethz.ch>
QGroundControl Open Source Ground Control Station
(c) 2009
PIXHAWK PROJECT <http://pixhawk.ethz.ch
>
(c) 2009
, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org
>
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 <http://www.gnu.org/licenses/>.
along with
QGROUNDCONTROL
. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
/**
* @file
* @brief Definition of the MAVLink protocol
*
* @author Lorenz Meier <mavteam@student.ethz.ch>
*
* @brief Definition of class MAVLinkProtocol
* @author Lorenz Meier <mail@qgroundcontrol.org>
*/
#ifndef MAVLINKPROTOCOL_H_
...
...
@@ -45,8 +42,11 @@ This file is part of the PIXHAWK project
#include "protocol.h"
/**
* MAVLink micro air vehicle protocol reference implementation.
*
@brief
MAVLink micro air vehicle protocol reference implementation.
*
* MAVLink is a generic communication protocol for micro air vehicles.
* for more information, please see the official website.
* @ref http://pixhawk.ethz.ch/software/mavlink/
**/
class
MAVLinkProtocol
:
public
ProtocolInterface
{
Q_OBJECT
...
...
src/comm/MAVLinkXMLParser.cc
View file @
96947527
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
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 <http://www.gnu.org/licenses/>.
======================================================================*/
/**
* @file
* @brief Implementation of class MAVLinkXMLParser
* @author Lorenz Meier <mail@qgroundcontrol.org>
*/
#include <QFile>
#include <QDir>
#include <QPair>
...
...
@@ -33,6 +62,9 @@ MAVLinkXMLParser::~MAVLinkXMLParser()
{
}
/**
* Generate C-code (C-89 compliant) out of the XML protocol specs.
*/
bool
MAVLinkXMLParser
::
generate
()
{
// Process result
...
...
@@ -51,26 +83,6 @@ bool MAVLinkXMLParser::generate()
QList
<
int
>*
usedMessageIDs
=
new
QList
<
int
>
();
QMap
<
QString
,
QString
>*
usedMessageNames
=
new
QMap
<
QString
,
QString
>
();
/*
// Seek for element "messages" until end of document
// ignoring all other tags
while(!n.isNull())
{
if (n.toElement().tagName() == "messages")
{
break;
}
else
{
qDebug() << "IGNORED TAG" << n.toElement().tagName();
n = n.nextSibling();
}
}
qDebug() << "WORKING ON" << n.toElement().tagName();
*/
QList
<
QPair
<
QString
,
QString
>
>
cFiles
;
QString
lcmStructDefs
=
""
;
...
...
src/comm/MAVLinkXMLParser.h
View file @
96947527
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
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 <http://www.gnu.org/licenses/>.
======================================================================*/
/**
* @file
* @brief Definition of class MAVLinkXMLParser
* @author Lorenz Meier <mail@qgroundcontrol.org>
*/
#ifndef MAVLINKXMLPARSER_H
#define MAVLINKXMLPARSER_H
...
...
@@ -5,6 +34,13 @@
#include <QDomDocument>
#include <QString>
/**
* @brief MAVLink micro air vehicle protocol generator
*
* MAVLink is a generic communication protocol for micro air vehicles.
* for more information, please see the official website.
* @ref http://pixhawk.ethz.ch/software/mavlink/
**/
class
MAVLinkXMLParser
:
public
QObject
{
Q_OBJECT
...
...
src/comm/OpalLink.cc
View file @
96947527
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
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 <http://www.gnu.org/licenses/>.
======================================================================*/
/**
* @file
* @brief Implementation of class OpalLink
* @author Bryan Godbolt <godbolt@ualberta.ca>
*/
#include "OpalLink.h"
OpalLink
::
OpalLink
()
:
...
...
src/comm/OpalLink.h
View file @
96947527
#ifndef OPALLINK_H
#define OPALLINK_H
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
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 <http://www.gnu.org/licenses/>.
======================================================================*/
/**
Connection to OpalRT. This class receives MAVLink packets as if it is a true link, but it
interprets the packets internally, and calls the appropriate api functions.
* @file
* @brief Connection to OpalRT
* @author Bryan Godbolt <godbolt@ualberta.ca>
*/
\author Bryan Godbolt <godbolt@ualberta.ca>
*/
#ifndef OPALLINK_H
#define OPALLINK_H
#include <QMutex>
#include <QDebug>
...
...
@@ -42,6 +65,16 @@
#define NUM_OUTPUT_SIGNALS 6
/**
* @brief Interface to OPAL-RT targets
*
* This is an interface to the Opal-RT hardware-in-the-loop (HIL) simulator.
* This class receives MAVLink packets as if it is a true link, but it
* interprets the packets internally, and calls the appropriate api functions.
*
* @author Bryan Godbolt <godbolt@ualberta.ca>
* @ref http://www.opal-rt.com/
*/
class
OpalLink
:
public
LinkInterface
{
Q_OBJECT
...
...
src/main.cc
View file @
96947527
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
QGroundControl Open Source Ground Control Station
(c) 2009, 2010
PIXHAWK PROJECT <http://pixhawk.ethz.ch
>
(c) 2009, 2010
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org
>
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 <http://www.gnu.org/licenses/>.
along with
QGROUNDCONTROL
. If not, see <http://www.gnu.org/licenses/>.
======================================================================*/
...
...
src/ui/MapWidget.h
View file @
96947527
...
...
@@ -23,9 +23,10 @@ This file is part of the PIXHAWK project
/**
* @file
* @brief Definition of
map view
* @brief Definition of
MapWidget
*
* @author Lorenz Meier <mavteam@student.ethz.ch>
* @author Mariano Lizzaraga
*
*/
...
...
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