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
c8e57f74
Commit
c8e57f74
authored
May 29, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
bac63010
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+9
-6
QGCFlightGearLink.h
src/comm/QGCFlightGearLink.h
+3
-0
No files found.
src/comm/QGCFlightGearLink.cc
View file @
c8e57f74
...
...
@@ -63,6 +63,9 @@ QGCFlightGearLink::QGCFlightGearLink(UASInterface* mav, QString startupArguments
this
->
mav
=
mav
;
this
->
name
=
tr
(
"FlightGear 3.0+ Link (port:%1)"
).
arg
(
port
);
setRemoteHost
(
remoteHost
);
// We need a mechanism so show error message from our FGLink thread on the UI thread. This signal connection will do that for us.
connect
(
this
,
SIGNAL
(
showCriticalMessageFromThread
(
const
QString
&
,
const
QString
&
)),
MainWindow
::
instance
(),
SLOT
(
showCriticalMessage
(
const
QString
&
,
const
QString
&
)));
}
QGCFlightGearLink
::~
QGCFlightGearLink
()
...
...
@@ -158,23 +161,23 @@ void QGCFlightGearLink::processError(QProcess::ProcessError err)
switch
(
err
)
{
case
QProcess
:
:
FailedToStart
:
MainWindow
::
instance
()
->
showCriticalMessage
(
tr
(
"FlightGear Failed to Start"
),
tr
(
"Please check if the path and command is correct"
));
emit
showCriticalMessageFromThread
(
tr
(
"FlightGear Failed to Start"
),
tr
(
"Please check if the path and command is correct"
));
break
;
case
QProcess
:
:
Crashed
:
MainWindow
::
instance
()
->
showCriticalMessage
(
tr
(
"FlightGear Crashed"
),
tr
(
"This is a FlightGear-related problem. Please upgrade FlightGear"
));
emit
showCriticalMessageFromThread
(
tr
(
"FlightGear Crashed"
),
tr
(
"This is a FlightGear-related problem. Please upgrade FlightGear"
));
break
;
case
QProcess
:
:
Timedout
:
MainWindow
::
instance
()
->
showCriticalMessage
(
tr
(
"FlightGear Start Timed Out"
),
tr
(
"Please check if the path and command is correct"
));
emit
showCriticalMessageFromThread
(
tr
(
"FlightGear Start Timed Out"
),
tr
(
"Please check if the path and command is correct"
));
break
;
case
QProcess
:
:
WriteError
:
MainWindow
::
instance
()
->
showCriticalMessage
(
tr
(
"Could not Communicate with FlightGear"
),
tr
(
"Please check if the path and command is correct"
));
emit
showCriticalMessageFromThread
(
tr
(
"Could not Communicate with FlightGear"
),
tr
(
"Please check if the path and command is correct"
));
break
;
case
QProcess
:
:
ReadError
:
MainWindow
::
instance
()
->
showCriticalMessage
(
tr
(
"Could not Communicate with FlightGear"
),
tr
(
"Please check if the path and command is correct"
));
emit
showCriticalMessageFromThread
(
tr
(
"Could not Communicate with FlightGear"
),
tr
(
"Please check if the path and command is correct"
));
break
;
case
QProcess
:
:
UnknownError
:
default:
MainWindow
::
instance
()
->
showCriticalMessage
(
tr
(
"FlightGear Error"
),
tr
(
"Please check if the path and command is correct."
));
emit
showCriticalMessageFromThread
(
tr
(
"FlightGear Error"
),
tr
(
"Please check if the path and command is correct."
));
break
;
}
}
...
...
src/comm/QGCFlightGearLink.h
View file @
c8e57f74
...
...
@@ -91,6 +91,9 @@ public:
static
bool
parseUIArguments
(
QString
uiArgs
,
QStringList
&
argList
);
void
run
();
signals:
void
showCriticalMessageFromThread
(
const
QString
&
title
,
const
QString
&
message
);
public
slots
:
// void setAddress(QString address);
...
...
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