mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 20:20:35 +08:00
TECS: Use version in ECL library
This change updates a number of interfaces to use the new TECS implementation from the ECL library.
This commit is contained in:
committed by
Lorenz Meier
parent
4923d0cba3
commit
3fc7aba178
@@ -904,6 +904,13 @@ void Ekf2::run()
|
||||
_ekf.get_pos_d_deriv(&pos_d_deriv);
|
||||
lpos.z_deriv = pos_d_deriv; // vertical position time derivative (m/s)
|
||||
|
||||
// Acceleration of body origin in local NED frame
|
||||
float vel_deriv[3] = {};
|
||||
_ekf.get_vel_deriv_ned(vel_deriv);
|
||||
lpos.ax = vel_deriv[0];
|
||||
lpos.ay = vel_deriv[1];
|
||||
lpos.az = vel_deriv[2];
|
||||
|
||||
// TODO: better status reporting
|
||||
lpos.xy_valid = _ekf.local_position_is_valid() && !_vel_innov_preflt_fail;
|
||||
lpos.z_valid = !_vel_innov_preflt_fail;
|
||||
|
||||
Reference in New Issue
Block a user