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
be9d92d0
Commit
be9d92d0
authored
Jun 14, 2018
by
Philipp Oettershagen
Browse files
HIL (X-Plane): Allow to control aircraft flaps in XPlane
parent
bb40dd6c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/comm/QGCXPlaneLink.cc
View file @
be9d92d0
...
...
@@ -532,6 +532,10 @@ void QGCXPlaneLink::updateActuatorControls(quint64 time, quint64 flags, float ct
p
.
f
[
6
]
=
ctl_3
;
p
.
f
[
7
]
=
ctl_3
;
writeBytesSafe
((
const
char
*
)
&
p
,
sizeof
(
p
));
/* Send flap signals, assuming that they are mapped to channel 5 (ctl_4) */
sendDataRef
(
"sim/flightmodel/controls/flaprqst"
,
ctl_4
);
sendDataRef
(
"sim/flightmodel/controls/flap2rqst"
,
ctl_4
);
break
;
}
...
...
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