From b4b9d80c2fd306a98a32c7d89287b97b4e2c16a9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 19 Mar 2013 11:32:43 +0900 Subject: [PATCH] Copter: bug fix to accept HIL accel values correctly --- ArduCopter/GCS_Mavlink.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index 02bd0f64de..e42adc917e 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -1913,9 +1913,9 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) accels.y = (float)packet.yacc / 1000.0; accels.z = (float)packet.zacc / 1000.0; - ins.set_gyro_offsets(gyros); + ins.set_gyro(gyros); - ins.set_accel_offsets(accels); + ins.set_accel(accels); // approximate a barometer float y; @@ -1991,9 +1991,9 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) accels.y = (float)packet.yacc / 1000.0; accels.z = (float)packet.zacc / 1000.0; - ins.set_gyro_offsets(gyros); + ins.set_gyro(gyros); - ins.set_accel_offsets(accels); + ins.set_accel(accels); compass.setHIL(packet.xmag,packet.ymag,packet.zmag); break;