1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

bugfix for xplane hitl, convert gyroscope sensor from rad/s to deg/s

This commit is contained in:
Corvus Corax 2013-12-27 16:26:59 +01:00
parent 66d1141c7f
commit 36788a60f4

View File

@ -318,10 +318,10 @@ void XplaneSimulator::processUpdate(const QByteArray & dataBuf)
out.velEast = velX;
out.velDown = -velZ;
// Update gyroscope sensor data
out.rollRate = rollRate_rad;
out.pitchRate = pitchRate_rad;
out.yawRate = yawRate_rad;
// Update gyroscope sensor data - convert from rad/s to deg/s
out.rollRate = rollRate_rad * (180.0/M_PI);
out.pitchRate = pitchRate_rad * (180.0/M_PI);
out.yawRate = yawRate_rad * (180.0/M_PI);
// Update accelerometer sensor data
out.accX = accX;