From 5c148153ac3e39782d5c6643f6c0b2e97b5e7eca Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 13 Dec 2012 08:42:14 +1100 Subject: [PATCH] AP_AHRS: updates for new AP_Param API --- libraries/AP_AHRS/AP_AHRS.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h index d7193d4f6b..1145de92b6 100644 --- a/libraries/AP_AHRS/AP_AHRS.h +++ b/libraries/AP_AHRS/AP_AHRS.h @@ -1,3 +1,5 @@ +/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- + #ifndef __AP_AHRS_H__ #define __AP_AHRS_H__ /* @@ -27,6 +29,9 @@ public: _gps(gps), _barometer(NULL) { + // load default values from var_info table + AP_Param::setup_object_defaults(this, var_info); + // base the ki values by the sensors maximum drift // rate. The APM2 has gyros which are much less drift // prone than the APM1, so we should have a lower ki,