adxl345: Implement timing via new adxl345_status messages

Query the adxl345 message counter every 100ms so that accurate timing
can be obtained during measurements.  This allows the adxl345 data to
be exported with timestamps while captures are running.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-08-14 13:41:12 -04:00
parent dd95f80d9d
commit e34137582d
3 changed files with 168 additions and 99 deletions

View file

@ -181,8 +181,6 @@ class ResonanceTester:
gcmd.respond_info(
"Writing raw accelerometer data to "
"%s file" % (raw_name,))
gcmd.respond_info("%s-axis accelerometer stats: %s" % (
chip_axis, aclient.get_stats(),))
if helper is None:
continue
for chip_axis, chip_values in raw_values: