-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
3piControl | ||
================= | ||
...is program for 3pi robot (http://www.pololu.com/catalog/product/975). | ||
Main purpose is controlling 3pi via bluetooth with smartphone/transmitter/etc. | ||
|
||
Protocol | ||
================= | ||
Program currently handles only one packet with following structure: | ||
|
||
/* header */ | ||
0xFF // start byte | ||
0x01 // device id | ||
0x05 // length | ||
0x04 // opcode | ||
/* data */ | ||
int16_t right_speed; // -255 to 255 | ||
int16_t left_speed; // -255 to 255 | ||
|
||
Output | ||
================= | ||
It sends back only text, in initial state it is voltage: | ||
\rXXXX mv | ||
|
||
When you press button A, it sends values from sensors: | ||
XXXX XXXX XXXX XXXX XXXX \n | ||
|
||
Buttons | ||
================= | ||
Button A - switches between voltage and sensors info | ||
Button B - switches the soft acceleration mode | ||
Button C - sensors calibration | ||
|
||
|
||
|
||
|
||
|