mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
attitude_estimator_q: populate control state gyro bias data
Populate with zeros. TODO provide estimate.
This commit is contained in:
committed by
Lorenz Meier
parent
27e6f07485
commit
f8cef1e9ab
@@ -492,11 +492,14 @@ void AttitudeEstimatorQ::task_main()
|
|||||||
|
|
||||||
/* attitude rates for control state */
|
/* attitude rates for control state */
|
||||||
ctrl_state.roll_rate = _rates(0);
|
ctrl_state.roll_rate = _rates(0);
|
||||||
|
|
||||||
ctrl_state.pitch_rate = _rates(1);
|
ctrl_state.pitch_rate = _rates(1);
|
||||||
|
|
||||||
ctrl_state.yaw_rate = _rates(2);
|
ctrl_state.yaw_rate = _rates(2);
|
||||||
|
|
||||||
|
/* TODO get bias estimates from estimator */
|
||||||
|
ctrl_state.roll_rate_bias = 0.0f;
|
||||||
|
ctrl_state.pitch_rate_bias = 0.0f;
|
||||||
|
ctrl_state.yaw_rate_bias = 0.0f;
|
||||||
|
|
||||||
ctrl_state.airspeed_valid = false;
|
ctrl_state.airspeed_valid = false;
|
||||||
|
|
||||||
if (_airspeed_mode == control_state_s::AIRSPD_MODE_MEAS) {
|
if (_airspeed_mode == control_state_s::AIRSPD_MODE_MEAS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user