Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: communication.h
- Revision:
- 2:7d052001050e
- Parent:
- 1:649349838d72
- Child:
- 3:def801644961
--- a/communication.h Mon Mar 27 16:36:53 2017 +0000 +++ b/communication.h Mon Mar 27 16:46:00 2017 +0000 @@ -3,14 +3,17 @@ #define STOP_COMMAND 0x66 //Log command params -#define SPEED_STATE_IDLE 0x00; -#define SPEED_STATE_SLOW 0x01; -#define SPEED_STATE_FAST 0x02; -#define SPEED_STATE_STOP 0x10; +#define SPEED_STATE_INDEX 0x01 +#define SPEED_STATE_IDLE 0x00 +#define SPEED_STATE_SLOW 0x01 +#define SPEED_STATE_FAST 0x02 +#define SPEED_STATE_STOP 0x10 -#define ANGLE_STATE_LEFT 0x10; -#define ANGLE_STATE_STRAIGHT 0x11; -#define ANGLE_STATE_RIGHT 0x01; +#define SPEED_STATE_INDEX 0x02 +#define ANGLE_STATE_LEFT 0x10 +#define ANGLE_STATE_STRAIGHT 0x11 +#define ANGLE_STATE_RIGHT 0x01 -#define DIRECTION_STATE_FORWARD 0x01; -#define DIRECTION_STATE_BACKWARD 0x10; \ No newline at end of file +#define SPEED_STATE_INDEX 0x03 +#define DIRECTION_STATE_FORWARD 0x01 +#define DIRECTION_STATE_BACKWARD 0x10 \ No newline at end of file