mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 14:47:35 +08:00
added function to return accelerometer bias
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user