Commit 61264568 authored by Lorenz Meier's avatar Lorenz Meier

Fixed roll / pitch / yaw rates outputs for XPlane 9

parent 172fd1bb
......@@ -428,7 +428,7 @@ void QGCXPlaneLink::readBytes()
// UAS* uas = dynamic_cast<UAS*>(mav);
// if (uas) uas->setManualControlCommands(man_roll, man_pitch, man_yaw, 0.6);
// }
else if (p.index == 16)
else if (xPlaneVersion == 10 && p.index == 16)
{
//qDebug() << "ANG VEL:" << p.f[0] << p.f[3] << p.f[7];
rollspeed = p.f[2];
......@@ -443,6 +443,12 @@ void QGCXPlaneLink::readBytes()
yaw = p.f[2] / 180.0f * M_PI;
emitUpdate = true;
}
else if ((xPlaneVersion == 9 && p.index == 17))
{
rollspeed = p.f[2];
pitchspeed = p.f[1];
yawspeed = p.f[0];
}
// else if (p.index == 19)
// {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment