mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 02:51:36 +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
|
* IMU units as a consistency metric and publish to the sensor preflight topic
|
||||||
*/
|
*/
|
||||||
if (!_armed) {
|
if (!_armed) {
|
||||||
|
preflt.timestamp = hrt_absolute_time();
|
||||||
_voted_sensors_update.calc_accel_inconsistency(preflt);
|
_voted_sensors_update.calc_accel_inconsistency(preflt);
|
||||||
_voted_sensors_update.calc_gyro_inconsistency(preflt);
|
_voted_sensors_update.calc_gyro_inconsistency(preflt);
|
||||||
_voted_sensors_update.calc_mag_inconsistency(preflt);
|
_voted_sensors_update.calc_mag_inconsistency(preflt);
|
||||||
|
|||||||
Reference in New Issue
Block a user