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
23f39ab5
Commit
23f39ab5
authored
May 25, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1601 from mavlink/udp_fix_sim_links
UDP fix sim links
parents
dbe47940
02dedf2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+1
-1
QGCJSBSimLink.cc
src/comm/QGCJSBSimLink.cc
+3
-4
QGCXPlaneLink.cc
src/comm/QGCXPlaneLink.cc
+1
-1
No files found.
src/comm/QGCFlightGearLink.cc
View file @
23f39ab5
...
...
@@ -90,7 +90,7 @@ void QGCFlightGearLink::run()
_udpCommSocket
=
new
QUdpSocket
(
this
);
Q_CHECK_PTR
(
_udpCommSocket
);
_udpCommSocket
->
moveToThread
(
this
);
_udpCommSocket
->
bind
(
host
,
port
);
_udpCommSocket
->
bind
(
host
,
port
,
QAbstractSocket
::
ReuseAddressHint
);
QObject
::
connect
(
_udpCommSocket
,
SIGNAL
(
readyRead
()),
this
,
SLOT
(
readBytes
()));
...
...
src/comm/QGCJSBSimLink.cc
View file @
23f39ab5
...
...
@@ -2,7 +2,7 @@
QGroundControl Open Source Ground Control Station
(c) 2009 - 201
1
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
(c) 2009 - 201
5
QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project
...
...
@@ -24,8 +24,7 @@ This file is part of the QGROUNDCONTROL project
/**
* @file
* @brief Definition of UDP connection (server) for unmanned vehicles
* @see Flightgear Manual http://mapserver.flightgear.org/getstart.pdf
* @author Lorenz Meier <mavteam@student.ethz.ch>
* @author Lorenz Meier <lorenz@px4.io>
*
*/
...
...
@@ -78,7 +77,7 @@ void QGCJSBSimLink::run()
if
(
!
mav
)
return
;
socket
=
new
QUdpSocket
(
this
);
socket
->
moveToThread
(
this
);
connectState
=
socket
->
bind
(
host
,
port
);
connectState
=
socket
->
bind
(
host
,
port
,
QAbstractSocket
::
ReuseAddressHint
);
QObject
::
connect
(
socket
,
SIGNAL
(
readyRead
()),
this
,
SLOT
(
readBytes
()));
...
...
src/comm/QGCXPlaneLink.cc
View file @
23f39ab5
...
...
@@ -164,7 +164,7 @@ void QGCXPlaneLink::run()
socket
=
new
QUdpSocket
(
this
);
socket
->
moveToThread
(
this
);
connectState
=
socket
->
bind
(
localHost
,
localPort
);
connectState
=
socket
->
bind
(
localHost
,
localPort
,
QAbstractSocket
::
ReuseAddressHint
);
if
(
!
connectState
)
{
emit
statusMessage
(
"Binding socket failed!"
);
...
...
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