mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Support 3d auxvel fusion
This commit is contained in:
parent
a67229e60e
commit
90aa4bb852
@ -1177,8 +1177,8 @@ void Ekf2::Run()
|
||||
// we can only use the landing target if it has a fixed position and a valid velocity estimate
|
||||
if (landing_target_pose.is_static && landing_target_pose.rel_vel_valid) {
|
||||
// velocity of vehicle relative to target has opposite sign to target relative to vehicle
|
||||
float velocity[2] = { -landing_target_pose.vx_rel, -landing_target_pose.vy_rel};
|
||||
float variance[2] = {landing_target_pose.cov_vx_rel, landing_target_pose.cov_vy_rel};
|
||||
matrix::Vector3f velocity { -landing_target_pose.vx_rel, -landing_target_pose.vy_rel, 0.0f};
|
||||
matrix::Vector3f variance {landing_target_pose.cov_vx_rel, landing_target_pose.cov_vy_rel, 0.0f};
|
||||
_ekf.setAuxVelData(landing_target_pose.timestamp, velocity, variance);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user