mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-08 09:10:56 -07:00
motan: add mpu9250/lis2dw dataset display
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
0a6d51bdfa
commit
6ba6e4fea8
1 changed files with 4 additions and 0 deletions
|
|
@ -398,6 +398,8 @@ class HandleADXL345:
|
|||
ParametersMin = ParametersMax = 2
|
||||
DataSets = [
|
||||
('adxl345(<name>,<axis>)', 'Accelerometer for given axis (x, y, or z)'),
|
||||
('mpu9250(<name>,<axis>)', 'Accelerometer for given axis (x, y, or z)'),
|
||||
('lis2dw(<name>,<axis>)', 'Accelerometer for given axis (x, y, or z)'),
|
||||
]
|
||||
def __init__(self, lmanager, name, name_parts):
|
||||
self.name = name
|
||||
|
|
@ -435,6 +437,8 @@ class HandleADXL345:
|
|||
self.next_accel = (x, y, z)
|
||||
self.data_pos += 1
|
||||
LogHandlers["adxl345"] = HandleADXL345
|
||||
LogHandlers["mpu9250"] = HandleADXL345
|
||||
LogHandlers["lis2dw"] = HandleADXL345
|
||||
|
||||
# Extract positions from magnetic angle sensor
|
||||
class HandleAngle:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue