Browse Source

AP_AHRS: save trim to eeprom when set_trim is called

master
rmackay9 12 years ago committed by Andrew Tridgell
parent
commit
1f7614929f
  1. 2
      libraries/AP_AHRS/AP_AHRS.h

2
libraries/AP_AHRS/AP_AHRS.h

@ -145,7 +145,7 @@ public: @@ -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);

Loading…
Cancel
Save