Skip to content

Commit

Permalink
Merge pull request mavlink#6587 from philipoe/XPlaneFlaps
Browse files Browse the repository at this point in the history
HIL (X-Plane): Allow to control aircraft flaps in XPlane
  • Loading branch information
DonLakeFlyer authored Jun 19, 2018
2 parents 359a08f + be9d92d commit 888a5d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/comm/QGCXPlaneLink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 888a5d5

Please sign in to comment.