Skip to content
Snippets Groups Projects
Commit 8c5c9938 authored by Samuel Tardieu's avatar Samuel Tardieu
Browse files

Motor shutdown and music commands

parent 5a24c439
No related branches found
No related tags found
No related merge requests found
......@@ -73,11 +73,16 @@ Values are exchanged in little endian format.
- In automatic motor distance, time in 100th of seconds to reach the maximum speed
or to decrease the speed from the maximum to 0.
** 0x28 Motor shutdown timeout (R/W)
- Number of tenths of seconds in before the motor shut down
** 0x30-0x31 Motor speed (R/W)
- Left and right motor speed, between -127 and 127 each, max speed is
±127. -128 means standby. ±127 corresponds to the value limited by the
max motor percentage.
- If written while in automatic mode, the robot switches to manual mode
** 0x32-0x35 Encoder ticks (R)
......@@ -93,3 +98,9 @@ Values are exchanged in little endian format.
- Reading this value gives the distance to the target in ticks.
- If left and right distances are not equal, they will be kept
proportional as much as possible in order to progress the same way.
** 0x40 Music (W)
- For each motor, left then right, frequency in Hz on 1 byte and
duration in 10th of seconds on 1 byte. This cannot be used if the
motor is moving.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment