mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-05 04:46:00 +01:00
motan: Add support for dumping and analyzing adxl345 data
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -321,6 +321,26 @@ and might later produce asynchronous messages such as:
|
||||
The "header" field in the initial query response is used to describe
|
||||
the fields found in later "data" responses.
|
||||
|
||||
### adxl345/dump_adxl345
|
||||
|
||||
This endpoint is used to subscribe to ADXL345 accelerometer data.
|
||||
Obtaining these low-level motion updates may be useful for diagnostic
|
||||
and debugging purposes. Using this endpoint may increase Klipper's
|
||||
system load.
|
||||
|
||||
A request may look like:
|
||||
`{"id": 123, "method":"adxl345/dump_adxl345",
|
||||
"params": {"sensor": "adxl345", "response_template": {}}}`
|
||||
and might return:
|
||||
`{"id": 123,"result":{"header":["time","x_acceleration","y_acceleration",
|
||||
"z_acceleration"]}}`
|
||||
and might later produce asynchronous messages such as:
|
||||
`{"params":{"overflows":0,"data":[[3292.432935,-535.44309,-1529.8374,9561.4],
|
||||
[3292.433256,-382.45935,-1606.32927,9561.48375]]}}`
|
||||
|
||||
The "header" field in the initial query response is used to describe
|
||||
the fields found in later "data" responses.
|
||||
|
||||
### pause_resume/cancel
|
||||
|
||||
This endpoint is similar to running the "PRINT_CANCEL" G-Code command.
|
||||
|
||||
Reference in New Issue
Block a user