From 957df64b862bb0c843713954140cc76bb1aa60d7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 14 Feb 2012 08:34:25 +1100 Subject: [PATCH] added some AP_Param testing of the compass --- Tools/VARTest/VARTest.pde | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tools/VARTest/VARTest.pde b/Tools/VARTest/VARTest.pde index 9ad9f0bdcc..dd98f0be55 100644 --- a/Tools/VARTest/VARTest.pde +++ b/Tools/VARTest/VARTest.pde @@ -95,6 +95,16 @@ void setup() { s[AP_MAX_NAME_SIZE] = 0; Serial.printf_P(PSTR("RC1_MIN.copy_name()->%s %p\n"), s, &g.channel_roll.radio_min); + Vector3f ofs; + ofs = compass.get_offsets(); + Serial.printf_P(PSTR("Compass: %f %f %f\n"), + ofs.x, ofs.y, ofs.z); + ofs.x += 1.1; + ofs.y += 1.2; + ofs.z += 1.3; + compass.set_offsets(ofs); + compass.save_offsets(); + // full testing of all variables uint16_t token; for (AP_Param *ap = AP_Param::first(&token, &type);