mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
add timestamp for sensor_preflight
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user