Commit 58e75ae8 authored by Lorenz Meier's avatar Lorenz Meier

Fix XPlane 9 operation, now tests ok. By Mark Whitehorn

parent 38ccebd3
...@@ -624,7 +624,7 @@ void QGCXPlaneLink::readBytes() ...@@ -624,7 +624,7 @@ void QGCXPlaneLink::readBytes()
fields_changed |= (1 << 0) | (1 << 1) | (1 << 2); fields_changed |= (1 << 0) | (1 << 1) | (1 << 2);
} }
// atmospheric pressue aircraft for XPlane 9 and 10 // atmospheric pressure aircraft for XPlane 9 and 10
else if (p.index == 6) else if (p.index == 6)
{ {
// inHg to hPa (hecto Pascal / millibar) // inHg to hPa (hecto Pascal / millibar)
...@@ -736,7 +736,7 @@ void QGCXPlaneLink::readBytes() ...@@ -736,7 +736,7 @@ void QGCXPlaneLink::readBytes()
alt = p.f[2] * 0.3048f; // convert feet (MSL) to meters alt = p.f[2] * 0.3048f; // convert feet (MSL) to meters
alt_agl = p.f[3] * 0.3048f; //convert feet (AGL) to meters alt_agl = p.f[3] * 0.3048f; //convert feet (AGL) to meters
} }
else if (p.index == 21 && xPlaneVersion == 10) else if (p.index == 21)
{ {
vy = p.f[3]; vy = p.f[3];
vx = -p.f[5]; vx = -p.f[5];
......
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