forked from Archive/PX4-Autopilot
added function to return accelerometer bias
This commit is contained in:
parent
f32303de69
commit
60abf07bee
|
@ -121,6 +121,8 @@ public:
|
|||
// return the estimated terrain vertical position relative to the NED origin
|
||||
bool get_terrain_vert_pos(float *ret);
|
||||
|
||||
void get_accel_bias(float *bias) {*bias = _state.accel_z_bias;}
|
||||
|
||||
private:
|
||||
|
||||
static const uint8_t _k_num_states = 24;
|
||||
|
|
|
@ -209,10 +209,7 @@ public:
|
|||
*val = _mag_declination_to_save_deg;
|
||||
}
|
||||
|
||||
void copy_accel_bias(float *bias)
|
||||
{
|
||||
*bias = _state[15];
|
||||
}
|
||||
virtual void get_accel_bias(float *bias) = 0;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
Loading…
Reference in New Issue