mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 09:23:33 +08:00
added method to get gyro bias
Signed-off-by: Roman Bapst <roman@px4.io>
This commit is contained in:
@@ -681,6 +681,16 @@ void Ekf::get_accel_bias(float bias[3])
|
||||
memcpy(bias, temp, 3 * sizeof(float));
|
||||
}
|
||||
|
||||
// get the gyroscope bias in rad/s
|
||||
void Ekf::get_gyro_bias(float bias[3])
|
||||
{
|
||||
float temp[3];
|
||||
temp[0] = _state.gyro_bias(0) /_dt_ekf_avg;
|
||||
temp[1] = _state.gyro_bias(1) /_dt_ekf_avg;
|
||||
temp[2] = _state.gyro_bias(2) /_dt_ekf_avg;
|
||||
memcpy(bias, temp, 3 * sizeof(float));
|
||||
}
|
||||
|
||||
// get the diagonal elements of the covariance matrix
|
||||
void Ekf::get_covariances(float *covariances)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user