mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ekf_att_pos_estimator: Publish control state gyro bias
This commit is contained in:
parent
f8cef1e9ab
commit
6a78df7fa0
@ -909,6 +909,11 @@ void AttitudePositionEstimatorEKF::publishControlState()
|
||||
_ctrl_state.pitch_rate = _LP_att_Q.apply(_ekf->dAngIMU.y / _ekf->dtIMU) - _ekf->states[11] / _ekf->dtIMUfilt;
|
||||
_ctrl_state.yaw_rate = _LP_att_R.apply(_ekf->dAngIMU.z / _ekf->dtIMU) - _ekf->states[12] / _ekf->dtIMUfilt;
|
||||
|
||||
/* Gyro bias estimates */
|
||||
_ctrl_state.roll_rate_bias = _ekf->states[10] / _ekf->dtIMUfilt;
|
||||
_ctrl_state.pitch_rate_bias = _ekf->states[11] / _ekf->dtIMUfilt;
|
||||
_ctrl_state.yaw_rate_bias = _ekf->states[12] / _ekf->dtIMUfilt;
|
||||
|
||||
/* Guard from bad data */
|
||||
if (!PX4_ISFINITE(_ctrl_state.x_vel) ||
|
||||
!PX4_ISFINITE(_ctrl_state.y_vel) ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user