mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
23 lines
496 B
C
23 lines
496 B
C
/* Define single-letter commands that will be sent by the PC over the
|
|
serial link.
|
|
*/
|
|
|
|
#define ANALOG_READ 'a'
|
|
#define GET_BAUDRATE 'b'
|
|
#define PIN_MODE 'c'
|
|
#define DIGITAL_READ 'd'
|
|
#define READ_ENCODERS 'e'
|
|
#define MOTOR_SPEEDS 'm'
|
|
#define PING 'p'
|
|
#define RESET_ENCODERS 'r'
|
|
#define SERVO_WRITE 's'
|
|
#define SERVO_READ 't'
|
|
#define UPDATE_PID 'u'
|
|
#define DIGITAL_WRITE 'w'
|
|
#define ANALOG_WRITE 'x'
|
|
#define LEFT 0
|
|
#define RIGHT 1
|
|
|
|
|
|
|