diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 3a367eccaf..9920d9060d 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -2140,8 +2140,8 @@ mission_failed: accels.y = packet.yacc * (GRAVITY_MSS/1000.0); accels.z = packet.zacc * (GRAVITY_MSS/1000.0); - ins.set_gyro(gyros); - ins.set_accel(accels); + ins.set_gyro(0, gyros); + ins.set_accel(0, accels); barometer.setHIL(packet.alt*0.001f); compass.setHIL(packet.roll, packet.pitch, packet.yaw);