From 5a4fee6ac372704aa3c5a65dd97ffb2399cfbde1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Feb 2023 11:16:02 +1100 Subject: [PATCH] SITL: fixed orientation of XPlane11 gyro data --- libraries/SITL/SIM_XPlane.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/SITL/SIM_XPlane.cpp b/libraries/SITL/SIM_XPlane.cpp index 706b483e3a..e0a7509184 100644 --- a/libraries/SITL/SIM_XPlane.cpp +++ b/libraries/SITL/SIM_XPlane.cpp @@ -457,8 +457,9 @@ bool XPlane::receive_data(void) gyro.y = radians(data[2]); gyro.z = radians(data[3]); } else { - gyro.x = data[1]; - gyro.y = data[2]; + // xplane 11 + gyro.x = data[2]; + gyro.y = data[1]; gyro.z = data[3]; } // we only count gyro data towards data counts