mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 19:53:34 +08:00
wind_estimate message: add identifier for source
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
bc1c8fb73a
commit
59564af860
@@ -1028,6 +1028,7 @@ void EKF2::PublishWindEstimate(const hrt_abstime ×tamp)
|
||||
wind_estimate.variance_east = wind_vel_var(1);
|
||||
wind_estimate.tas_scale = 0.0f; //leave at 0 as scale is not estimated in ekf
|
||||
wind_estimate.timestamp = _replay_mode ? timestamp : hrt_absolute_time();
|
||||
wind_estimate.source = wind_estimate_s::SOURCE_EKF;
|
||||
|
||||
_wind_pub.publish(wind_estimate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user