Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f1c2703d
Commit
f1c2703d
authored
Sep 29, 2012
by
Lorenz Meier
Browse files
Minor cleanups
parent
3131d7e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/QGCXPlaneLink.cc
View file @
f1c2703d
...
...
@@ -79,7 +79,7 @@ void QGCXPlaneLink::storeSettings()
// Store settings
QSettings
settings
;
settings
.
beginGroup
(
"QGC_XPLANE_LINK"
);
settings
.
setValue
(
"REMOTE_HOST"
,
QString
(
"%1:%2"
).
arg
(
remoteHost
.
toString
()
,
remotePort
));
settings
.
setValue
(
"REMOTE_HOST"
,
QString
(
"%1:%2"
).
arg
(
remoteHost
.
toString
()
).
arg
(
remotePort
));
settings
.
endGroup
();
settings
.
sync
();
}
...
...
@@ -129,7 +129,7 @@ void QGCXPlaneLink::processError(QProcess::ProcessError err)
QString
QGCXPlaneLink
::
getRemoteHost
()
{
return
QString
(
"%1:%2"
).
arg
(
remoteHost
.
toString
()
,
remotePort
);
return
QString
(
"%1:%2"
).
arg
(
remoteHost
.
toString
()
).
arg
(
remotePort
);
}
/**
...
...
@@ -548,6 +548,10 @@ void QGCXPlaneLink::selectPlane(const QString& plane)
airframeID
=
AIRFRAME_QUAD_DJI_F450_PWM
;
}
}
else
{
airframeID
=
AIRFRAME_UNKNOWN
;
}
}
void
QGCXPlaneLink
::
setPositionAttitude
(
double
lat
,
double
lon
,
double
alt
,
double
roll
,
double
pitch
,
double
yaw
)
...
...
@@ -709,7 +713,7 @@ bool QGCXPlaneLink::connectSimulation()
}
}
qDebug
()
<<
"REQ SEND TO:"
<<
localAddrStr
<<
localPortStr
;
//
qDebug() << "REQ SEND TO:" << localAddrStr << localPortStr;
ip
.
index
=
0
;
strncpy
(
ip
.
str_ipad_them
,
localAddrStr
.
toAscii
(),
qMin
((
int
)
sizeof
(
ip
.
str_ipad_them
),
16
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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