mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 04:08:04 -06:00
motan: Add support for graphing ldc1612 coil frequencies
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b09897245e
commit
a8b493a1ae
2 changed files with 69 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue