Browse Source

HIL (X-Plane): Allow to control aircraft flaps in XPlane

QGC4.4
Philipp Oettershagen 7 years ago
parent
commit
be9d92d04d
  1. 4
      src/comm/QGCXPlaneLink.cc

4
src/comm/QGCXPlaneLink.cc

@ -532,6 +532,10 @@ void QGCXPlaneLink::updateActuatorControls(quint64 time, quint64 flags, float ct @@ -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;
}

Loading…
Cancel
Save