Browse Source

AP_Compass: fixed Compass::get_raw_field()

It seems as if it were a copy-paste error. A statis analyzer would
definetely be angry.
master
Staroselskii Georgii 10 years ago committed by Andrew Tridgell
parent
commit
bd7c313bee
  1. 2
      libraries/AP_Compass/Compass.h

2
libraries/AP_Compass/Compass.h

@ -129,7 +129,7 @@ public: @@ -129,7 +129,7 @@ public:
bool has_unfiltered_field() const { return has_unfiltered_field(get_primary()); }
const Vector3f &get_raw_field(uint8_t i) const { return _state[i].raw_field; }
const Vector3f &get_raw_field(void) const { return get_unfiltered_field(get_primary()); }
const Vector3f &get_raw_field(void) const { return get_raw_field(get_primary()); }
const Vector3f &get_unfiltered_field(uint8_t i) const { return _state[i].unfiltered_field; }
const Vector3f &get_unfiltered_field(void) const { return get_unfiltered_field(get_primary()); }

Loading…
Cancel
Save