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
c8c3290e
Commit
c8c3290e
authored
Jun 04, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
1378b1b0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
122 deletions
+134
-122
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+124
-113
QGCFlightGearLink.h
src/comm/QGCFlightGearLink.h
+10
-9
No files found.
src/comm/QGCFlightGearLink.cc
View file @
c8c3290e
This diff is collapsed.
Click to expand it.
src/comm/QGCFlightGearLink.h
View file @
c8c3290e
...
...
@@ -47,7 +47,6 @@ This file is part of the QGROUNDCONTROL project
class
QGCFlightGearLink
:
public
QGCHilLink
{
Q_OBJECT
//Q_INTERFACES(QGCFlightGearLinkInterface:LinkInterface)
public:
QGCFlightGearLink
(
UASInterface
*
mav
,
QString
startupArguments
,
QString
remoteHost
=
QString
(
"127.0.0.1:49000"
),
QHostAddress
host
=
QHostAddress
::
Any
,
quint16
port
=
49005
);
...
...
@@ -103,10 +102,6 @@ public slots:
/** @brief Send new control states to the simulation */
void
updateControls
(
quint64
time
,
float
rollAilerons
,
float
pitchElevator
,
float
yawRudder
,
float
throttle
,
quint8
systemMode
,
quint8
navMode
);
void
updateActuators
(
quint64
time
,
float
act1
,
float
act2
,
float
act3
,
float
act4
,
float
act5
,
float
act6
,
float
act7
,
float
act8
);
// /** @brief Remove a host from broadcasting messages to */
// void removeHost(const QString& host);
// void readPendingDatagrams();
void
processError
(
QProcess
::
ProcessError
err
);
/** @brief Set the simulator version as text string */
void
setVersion
(
const
QString
&
version
)
{
...
...
@@ -135,10 +130,9 @@ public slots:
bool
connectSimulation
();
bool
disconnectSimulation
();
void
printFgfsOutput
();
void
printFgfsError
();
void
setStartupArguments
(
QString
startupArguments
);
void
setBarometerOffset
(
float
barometerOffsetkPa
);
void
processError
(
QProcess
::
ProcessError
err
);
protected:
QString
name
;
...
...
@@ -147,11 +141,9 @@ protected:
quint16
currentPort
;
quint16
port
;
int
id
;
QUdpSocket
*
socket
;
bool
connectState
;
UASInterface
*
mav
;
QProcess
*
process
;
unsigned
int
flightGearVersion
;
QString
startupArguments
;
bool
_sensorHilEnabled
;
...
...
@@ -159,10 +151,19 @@ protected:
void
setName
(
QString
name
);
private
slots
:
void
_printFgfsOutput
(
void
);
void
_printFgfsError
(
void
);
private:
static
bool
_findUIArgument
(
const
QStringList
&
uiArgList
,
const
QString
&
argLabel
,
QString
&
argValue
);
QString
_fgProcessName
;
///< FlightGear process to start
QString
_fgProcessWorkingDirPath
;
///< Working directory to start FG process in, empty for none
QStringList
_fgArgList
;
///< Arguments passed to FlightGear process
QUdpSocket
*
_udpCommSocket
;
///< UDP communication sockect between FG and QGC
QProcess
*
_fgProcess
;
///< FlightGear process
};
#endif // QGCFLIGHTGEARLINK_H
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