From 492e65acdeb49caf917db09bb7e47fe109b14e64 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 Feb 2014 08:18:31 +1100 Subject: [PATCH] Plane: fix for HIL API change --- ArduPlane/GCS_Mavlink.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);