mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +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[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 */
|
||||
ctrl_state.roll_rate = _lp_roll_rate.apply(_rates(0));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user