Skip to main content

Overview of commands

Requests and Responses are formed as a string. A Request begins with a key character and ends in _. A response begins with %, contains the original command and has a list of responses following the = sign.

Requests

RequestKeyPurposeExample
GetValue?Retrieve a value or status?STTN_ - Requests the current status of the station (stopped or not).
SetValue^Set a specific parameter^STNT 1_ - Sets the Station timeout.
Action@Command the robot to do something@TDIR 1_ - Commands the robot to move forward.

Responses

ResponseKeyExample
Acknowledge#ACK%@TDIR=#ACK_ - Acknowledges the TDIR command.
Error#ERR%@TDIR=#ERR_ - Indicates an error in the Target Direction command.
Unknown#UNK%?TDIR=#UNK - Indicates that the queried value is in an unknown state or has not been set.
Value<list>%?STTN=1616173082013918219 1_ - Returns the timestamp (nanoseconds) and value 1 for the STTN command.

Available Commands

CMDArgsResponseDescription
?STTN-ts boolReturns timestamp and True if currently stopped at a station.
?SYSP-ts boolReturns timestamp and True if the system is powered on and available.
?TDIR-ts intGets the Target Direction in autonomy mode. Result will be -1, 0, or 1 for Reverse, Paused, and Forward respectively.
?RSPD-ts float floatGets linear and rotational velocity in that order of the robot at the returned time stamp.
?RGPS-ts float floatGets the latitude and longitude in that order of the robot at the antenna at the returned time stamp.
@TDIRintackSets the Target Direction in autonomy mode. This will move the robot in the desired direction. Send -1, 0, or 1 for Reverse, Paused, and Forward respectively. Mimics the Forward/Back/Stop buttons on the robot.
^RSPDfloatackSets the speed the robot will travel at in manual control, row follow, and retrace. Accepted speeds limited to a value between 0.5 and 1.6

String Datatypes

TypeDescriptionExamples
boolTrue / False1 / 0
tsSystem timestamp in nanoseconds (Epoch / UTC)1616173082013918219
intInteger213, -31
floatFloating point number8.123, -3.14159