mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 16:43:35 +08:00
publish acceleration in control state
This commit is contained in:
@@ -615,6 +615,10 @@ void AttitudeEstimatorQ::task_main()
|
|||||||
ctrl_state.q[2] = _q(2);
|
ctrl_state.q[2] = _q(2);
|
||||||
ctrl_state.q[3] = _q(3);
|
ctrl_state.q[3] = _q(3);
|
||||||
|
|
||||||
|
ctrl_state.x_acc = _accel(0);
|
||||||
|
ctrl_state.y_acc = _accel(1);
|
||||||
|
ctrl_state.z_acc = _accel(2);
|
||||||
|
|
||||||
/* attitude rates for control state */
|
/* attitude rates for control state */
|
||||||
ctrl_state.roll_rate = _lp_roll_rate.apply(_rates(0));
|
ctrl_state.roll_rate = _lp_roll_rate.apply(_rates(0));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user