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:
- 1:649349838d72
- Parent:
- 0:2c3535cce625
- Child:
- 2:7d052001050e
--- a/communication.h Mon Mar 27 16:33:26 2017 +0000 +++ b/communication.h Mon Mar 27 16:36:53 2017 +0000 @@ -1,16 +1,16 @@ //Commands OPCODEs -#define LOG_COMMAND = 0x42 -#define STOP_COMMAND = 0x66 +#define LOG_COMMAND 0x42 +#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_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 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 DIRECTION_STATE_FORWARD 0x01; +#define DIRECTION_STATE_BACKWARD 0x10; \ No newline at end of file