bmi055: accel periodically read temperature

This commit is contained in:
Daniel Agar
2020-07-09 18:03:29 -04:00
parent fa0ca7e65c
commit e2ad1bbc91
@@ -223,6 +223,13 @@ void BMI055_Accelerometer::RunImpl()
perf_count(_bad_register_perf);
Reset();
}
} else {
// periodically update temperature (~1 Hz)
if (hrt_elapsed_time(&_temperature_update_timestamp) >= 1_s) {
UpdateTemperature();
_temperature_update_timestamp = now;
}
}
}