setEncoderQuadInvert v5.2
Invert the quadrature inputs of an encoder speed source, which reverses the direction of travel reported by the encoder. This is useful when an encoder is mounted so that it counts backwards.
The setting is saved as part of the speed source settings and applies to all encoder inputs of the speed source.
Parameter
| Key | Type | Description |
|---|---|---|
| invert | boolean | true to invert the encoder quadrature, false for normal operation. |
| id | string | Optional speed source ID. If omitted, the speed source of printer is used. |
| printer | string | Printer ID. Required if id is omitted and more than one printer is available. |
Return value
null
Example
setEncoderQuadInvert {"printer": "printer1", "invert": true}