motan: Add support for graphing ldc1612 coil frequencies

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2023-12-15 19:05:25 -05:00
parent b09897245e
commit a8b493a1ae
2 changed files with 69 additions and 2 deletions

View file

@ -152,10 +152,12 @@ class DataLogger:
"motion_report/dump_stepper", {"name": stepper})
# Subscribe to additional sensor data
stypes = ["adxl345", "lis2dw", "mpu9250", "angle"]
stypes = {st:st for st in stypes}
stypes['probe_eddy_current'] = 'ldc1612'
config = status["configfile"]["settings"]
for cfgname in config.keys():
for st in stypes:
if cfgname == st or cfgname.startswith(st + " "):
for capprefix, st in sorted(stypes.items()):
if cfgname == capprefix or cfgname.startswith(capprefix + " "):
aname = cfgname.split()[-1]
lname = "%s:%s" % (st, aname)
qcmd = "%s/dump_%s" % (st, st)