before test

Dependencies:   Communication_Robot

Fork of BEAR_Protocol_Edited by phirawat rattanachote

Committer:
b0ssiz
Date:
Thu Jan 21 16:03:47 2016 +0000
Revision:
7:ce4234c56410
Parent:
5:6f30b4ea4020
Child:
8:e1f43b1df0b5
Change structure of function in Bear_Protocol.cpp

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 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 7:ce4234c56410 10 #define MARGIN 0x03
b0ssiz 7:ce4234c56410 11 #define KP_UPPER_MOTOR 0x04
b0ssiz 7:ce4234c56410 12 #define KI_UPPER_MOTOR 0x05
b0ssiz 7:ce4234c56410 13 #define KD_UPPER_MOTOR 0x06
b0ssiz 7:ce4234c56410 14 #define KP_LOWER_MOTOR 0x07
b0ssiz 7:ce4234c56410 15 #define KI_LOWER_MOTOR 0x08
b0ssiz 7:ce4234c56410 16 #define KD_LOWER_MOTOR 0x09
b0ssiz 7:ce4234c56410 17 #define PID_UPPER_MOTOR 0x0A
b0ssiz 7:ce4234c56410 18 #define PID_LOWER_MOTOR 0x0B
b0ssiz 7:ce4234c56410 19 #define HEIGHT 0x0C
b0ssiz 7:ce4234c56410 20 #define WHEELPOS 0x0D
b0ssiz 7:ce4234c56410 21 #define MAG_DATA 0x0E
b0ssiz 7:ce4234c56410 22 #define OFFSET 0x0F
b0ssiz 7:ce4234c56410 23 #define BODY_LENGTH 0x10
b0ssiz 7:ce4234c56410 24 #define ANGLE_RANGE 0x11
b0ssiz 7:ce4234c56410 25 #define EEPROM 0x12