update protocol.h

Dependencies:   Communication_Robot

Fork of BEAR_Reciever by BE@R lab

Committer:
icyzkungz
Date:
Tue Jun 07 06:59:48 2016 +0000
Revision:
24:2dca9d071f9e
Parent:
13:e7404c675611
update protocol.h

Who changed what in which revision?

UserRevisionLine numberNew 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 8:2d34916ac178 7 #define ID 0x00
b0ssiz 8:2d34916ac178 8 #define MOTOR_UPPER_ANG 0x01
b0ssiz 8:2d34916ac178 9 #define MOTOR_LOWER_ANG 0x02
b0ssiz 13:e7404c675611 10 #define UP_MARGIN 0x03
b0ssiz 13:e7404c675611 11 #define LOW_MARGIN 0x04
b0ssiz 13:e7404c675611 12 #define KP_UPPER_MOTOR 0x05
b0ssiz 13:e7404c675611 13 #define KI_UPPER_MOTOR 0x06
b0ssiz 13:e7404c675611 14 #define KD_UPPER_MOTOR 0x07
b0ssiz 13:e7404c675611 15 #define KP_LOWER_MOTOR 0x08
b0ssiz 13:e7404c675611 16 #define KI_LOWER_MOTOR 0x09
b0ssiz 13:e7404c675611 17 #define KD_LOWER_MOTOR 0x0A
b0ssiz 13:e7404c675611 18 #define PID_UPPER_MOTOR 0x0B
b0ssiz 13:e7404c675611 19 #define PID_LOWER_MOTOR 0x0C
b0ssiz 13:e7404c675611 20 #define HEIGHT 0x0D
b0ssiz 13:e7404c675611 21 #define WHEELPOS 0x0E
b0ssiz 13:e7404c675611 22 #define MAG_DATA 0x0F
b0ssiz 13:e7404c675611 23 #define OFFSET 0x10
b0ssiz 13:e7404c675611 24 #define BODY_WIDTH 0x11
b0ssiz 13:e7404c675611 25 #define ANGLE_RANGE_UP 0x12
b0ssiz 13:e7404c675611 26 #define ANGLE_RANGE_LOW 0x13
b0ssiz 13:e7404c675611 27 #define UP_LINK_LENGTH 0x14
b0ssiz 13:e7404c675611 28 #define LOW_LINK_LENGTH 0x15
b0ssiz 13:e7404c675611 29 #define SAVE_EEPROM_DATA 0x16