mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 05:41:36 +08:00
estimator messages add explicit timestamp_sample
- timestamp is uORB publication metadata - this allows us to see what the system saw at publication time plus the latency in estimation
This commit is contained in:
@@ -358,10 +358,11 @@ AttitudeEstimatorQ::Run()
|
||||
|
||||
if (update(dt)) {
|
||||
vehicle_attitude_s att = {};
|
||||
att.timestamp = sensors.timestamp;
|
||||
att.timestamp_sample = sensors.timestamp;
|
||||
_q.copyTo(att.q);
|
||||
|
||||
/* the instance count is not used here */
|
||||
att.timestamp = hrt_absolute_time();
|
||||
_att_pub.publish(att);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user