similar robotis communication v1.0 in this lib use for protocol to control and diagnotic robot
Fork of Communication_Robot by
Revision 3:2f334f0cee75, committed 2015-03-02
- Comitter:
- soulx
- Date:
- Mon Mar 02 05:52:56 2015 +0000
- Parent:
- 2:56c1de1612dd
- Commit message:
- add paramter addres of instruction control
Changed in this revision
communication.cpp | Show annotated file Show diff for this revision Revisions of this file |
protocol.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 56c1de1612dd -r 2f334f0cee75 communication.cpp --- a/communication.cpp Sun Mar 01 15:40:51 2015 +0000 +++ b/communication.cpp Mon Mar 02 05:52:56 2015 +0000 @@ -1,3 +1,4 @@ + #include "mbed.h" #include "communication.h" //#include "protocol.h"
diff -r 56c1de1612dd -r 2f334f0cee75 protocol.h --- a/protocol.h Sun Mar 01 15:40:51 2015 +0000 +++ b/protocol.h Mon Mar 02 05:52:56 2015 +0000 @@ -26,6 +26,14 @@ #define ANDANTE_ERRBIT_MASTER_CHECKSUM 0xFF +//Instruction Control +#define ANDANTE_SPEED_CONTROL 0x01 +#define ANDANTE_FRONT_ANGLE 0x02 +#define ANDANTE_REAR_ANGLE 0x04 + +//Instruction Sensor + + struct ANDANTE_PROTOCOL_PACKET { uint8_t robotId;