mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 08:34:06 +08:00
add timestamp for sensor_preflight
This commit is contained in:
parent
be52dcf5e3
commit
ed261c76da
@ -688,6 +688,7 @@ Sensors::run()
|
||||
* IMU units as a consistency metric and publish to the sensor preflight topic
|
||||
*/
|
||||
if (!_armed) {
|
||||
preflt.timestamp = hrt_absolute_time();
|
||||
_voted_sensors_update.calc_accel_inconsistency(preflt);
|
||||
_voted_sensors_update.calc_gyro_inconsistency(preflt);
|
||||
_voted_sensors_update.calc_mag_inconsistency(preflt);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user