mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 04:53:34 +08:00
df_mpu9250_wrapper: use the elapsed counter
This commit is contained in:
@@ -505,6 +505,8 @@ int DfMpu9250Wrapper::_publish(struct imu_sensor_data &data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
perf_begin(_publish_perf);
|
||||
|
||||
_publish_count = 0;
|
||||
|
||||
// TODO: get these right
|
||||
@@ -552,6 +554,8 @@ int DfMpu9250Wrapper::_publish(struct imu_sensor_data &data)
|
||||
DevMgr::updateNotify(*this);
|
||||
}
|
||||
|
||||
perf_end(_publish_perf);
|
||||
|
||||
// TODO: check the return codes of this function
|
||||
return 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user