v1.1
Dependencies: Communication_Robot
Fork of BEAR_Protocol_Edited by
Command.h@10:2398eeafa967, 2016-01-22 (annotated)
- Committer:
- b0ssiz
- Date:
- Fri Jan 22 02:25:26 2016 +0000
- Revision:
- 10:2398eeafa967
- Parent:
- 8:e1f43b1df0b5
- Child:
- 11:b34eababcf56
Update; -Add function set and get UpperLink and LowerLink; -Add macro to Command.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
b0ssiz | 0:fc963e08d580 | 1 | //Instruction Set |
b0ssiz | 0:fc963e08d580 | 2 | #define PING 0x01 |
b0ssiz | 0:fc963e08d580 | 3 | #define READ_DATA 0x02 |
b0ssiz | 0:fc963e08d580 | 4 | #define WRITE_DATA 0x03 |
b0ssiz | 0:fc963e08d580 | 5 | |
b0ssiz | 0:fc963e08d580 | 6 | //CONTROL TABLE |
b0ssiz | 7:ce4234c56410 | 7 | #define ID 0x00 |
b0ssiz | 7:ce4234c56410 | 8 | #define MOTOR_UPPER_ANG 0x01 |
b0ssiz | 7:ce4234c56410 | 9 | #define MOTOR_LOWER_ANG 0x02 |
b0ssiz | 8:e1f43b1df0b5 | 10 | #define UP_MARGIN 0x03 |
b0ssiz | 8:e1f43b1df0b5 | 11 | #define LOW_MARGIN 0x04 |
b0ssiz | 8:e1f43b1df0b5 | 12 | #define KP_UPPER_MOTOR 0x05 |
b0ssiz | 8:e1f43b1df0b5 | 13 | #define KI_UPPER_MOTOR 0x06 |
b0ssiz | 8:e1f43b1df0b5 | 14 | #define KD_UPPER_MOTOR 0x07 |
b0ssiz | 8:e1f43b1df0b5 | 15 | #define KP_LOWER_MOTOR 0x08 |
b0ssiz | 8:e1f43b1df0b5 | 16 | #define KI_LOWER_MOTOR 0x09 |
b0ssiz | 8:e1f43b1df0b5 | 17 | #define KD_LOWER_MOTOR 0x0A |
b0ssiz | 8:e1f43b1df0b5 | 18 | #define PID_UPPER_MOTOR 0x0B |
b0ssiz | 8:e1f43b1df0b5 | 19 | #define PID_LOWER_MOTOR 0x0C |
b0ssiz | 8:e1f43b1df0b5 | 20 | #define HEIGHT 0x0D |
b0ssiz | 8:e1f43b1df0b5 | 21 | #define WHEELPOS 0x0E |
b0ssiz | 8:e1f43b1df0b5 | 22 | #define MAG_DATA 0x0F |
b0ssiz | 8:e1f43b1df0b5 | 23 | #define OFFSET 0x10 |
b0ssiz | 8:e1f43b1df0b5 | 24 | #define BODY_LENGTH 0x11 |
b0ssiz | 8:e1f43b1df0b5 | 25 | #define ANGLE_RANGE_UP 0x12 |
b0ssiz | 8:e1f43b1df0b5 | 26 | #define ANGLE_RANGE_LOW 0x13 |
b0ssiz | 10:2398eeafa967 | 27 | #define UP_LINK_LENGTH 0x14 |
b0ssiz | 10:2398eeafa967 | 28 | #define LOW_LINK_LENGTH 0x15 |
b0ssiz | 10:2398eeafa967 | 29 | #define SAVE_EEPROM_DATA 0x16 |