From 1f7614929ff61a599e569b4865d9eac446e7f33c Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Wed, 12 Dec 2012 17:24:28 +0900 Subject: [PATCH] AP_AHRS: save trim to eeprom when set_trim is called --- libraries/AP_AHRS/AP_AHRS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h index 8375e51d1f..e9dce17359 100644 --- a/libraries/AP_AHRS/AP_AHRS.h +++ b/libraries/AP_AHRS/AP_AHRS.h @@ -145,7 +145,7 @@ public: Vector3f get_trim() { return _trim; } // set_trim - virtual void set_trim(Vector3f new_trim) { _trim.set(new_trim); } + virtual void set_trim(Vector3f new_trim) { _trim.set_and_save(new_trim); } // add_trim - adjust the roll and pitch trim up to a total of 10 degrees virtual void add_trim(float roll_in_radians, float pitch_in_radians);