Aesl Program
|
Incoming events to change motion queue: Q_*
.
More...
Functions | |
Q_add_motion (integer Qid, integer Qtime, integer QspL, integer QspR) | |
Q_add_motion job %n for %n csec, left %n right %n. More... | |
Q_cancel_motion (integer Qid) | |
Q_cancel_motion job %n. More... | |
Q_set_odometer (integer angle, integer x, integer y) | |
Q_set_odometer theta %n x %n y %n. More... | |
Q_reset () | |
Q_reset. More... | |
Incoming events to change motion queue: Q_*
.
The REST API provides events for sending requests to the motion queue. Note that the brief description line for each will be used as the Scratch block definition.
Changes to the motion queue will be broadcast using events Q_motion_added
, Q_motion_cancelled
, Q_motion_started
, Q_motion_ended
, Q_motion_noneleft
.
|
inlineprivate |
Q_add_motion job %n for %n csec, left %n right %n.
Add a task to the motion queue
Qid | task id |
Qtime | time in 100ths |
QspL | left motor speed |
QspR | right motor speed |
|
inlineprivate |
Q_cancel_motion job %n.
Cancel a task in the motion queue
Qid | task id |
|
inlineprivate |
Q_reset.
Reset the queue and stop motors
|
inlineprivate |
Q_set_odometer theta %n x %n y %n.
Set the odometer
angle | angle in Aseba radians |
x | x coordinate |
y | y coordinate |