Plane: fix for HIL API change

This commit is contained in:
Andrew Tridgell 2014-02-23 08:18:31 +11:00
parent ffcc77a21f
commit 492e65acde
1 changed files with 2 additions and 2 deletions

View File

@ -2140,8 +2140,8 @@ mission_failed:
accels.y = packet.yacc * (GRAVITY_MSS/1000.0); accels.y = packet.yacc * (GRAVITY_MSS/1000.0);
accels.z = packet.zacc * (GRAVITY_MSS/1000.0); accels.z = packet.zacc * (GRAVITY_MSS/1000.0);
ins.set_gyro(gyros); ins.set_gyro(0, gyros);
ins.set_accel(accels); ins.set_accel(0, accels);
barometer.setHIL(packet.alt*0.001f); barometer.setHIL(packet.alt*0.001f);
compass.setHIL(packet.roll, packet.pitch, packet.yaw); compass.setHIL(packet.roll, packet.pitch, packet.yaw);