S-code describes a set of codes used to communicate with a SMARS robot.
An example sent over bluetooth would be:
S111 3
This would move the robot forward 3 units. A unit is dependent on lots of things so its hard to define in the language.
100 - # Movement
101 - Move Forward
102 - Move backward
103 - Turn left
104 - Turn right
110 - # Movement
111 - Move Forward
112 - Move Backwards
113 - Turn Left
114 - Turn Right
150 - # Quad SMARS movements
151 - Walk Forward
152 - Walk Backward
153 - Turn Left
154 - Turn Right
155 - Stand Up
156 - Sit Down
157 - Clap
158 - Wiggle
200 - # Inputs, sensors
210 - Light sensor
211 - get light level
220 - Line sensor
221 - get light level
230 - Ultrasonic sensor
231 - get distance from sensor
240 - # Battery Level
241 - get battery level
250 - # IMU
251 - Get position from IMU
252 - Get Compass Heading
300 - # output - sound and lights
400 - status
401 - get current status
500 - Other Motors (for future use)
501 - Move motor 1