Skip to content

jsfrc/einsy-control

Repository files navigation

Serial commands

Every successful command replies with ok. Commands can be CRLF or LF separated. List of available commands:

on [x|y|z|e]

Will turn motor's driver on, applying current to coils. Enqueued command.

off [x|y|z|e]

Turns off driver's motor driver, removing current from coils.

start [x0|y0|z0|e0]

Start motor's queued actions. axis0 will start queue, axis1 will make motor run continuously until halted.

stop [x|y|z|e]

Stop motor. Enqueued command.

halt [x|y|z|e]

Stop motor immediately. Turn off motor's driver and reset it's action queue.

rpm [x60.0|y60.0|z60.0|e60.0]

Set motor RPM. Accepts float values. Enqueued command.

accel [x60.0|y60.0|z60.0|e60.0]

Set motor acceleration. Accepts float values. Enqueued command.

decel [x60.0|y60.0|z60.0|e60.0]

Set motor deceleration. Accepts float values. Enqueued command.

ramp/ramp_to [x60.0|y60.0|z60.0|e60.0]

Ramp motor's RPM over next movement. Enqueued command.

move_rot [x1.5|y1.5|z1.5|e1.5]

Move motor by N rotations. Accepts float values. Enqueued command.

home [x0|y0|z0|e0]

Home given axis. Motor will do few steps back, then run forward until stallGuard is triggered. It will do few steps back again and move forward again, slowly. After stallGuard is triggered, motor will stop. axis0 and axis1 controls direction of homing.

wait_for_motor [x|y|z|e]

WIP: Will halt commands processing until specified motors finish their movements.

Other commands:

print_queue
empty_queue

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published