a

Dependencies:   HMC6352 PID mbed

Committer:
akudohune
Date:
Fri Apr 19 09:13:32 2013 +0000
Revision:
0:8215f0743d86
to yusuke

Who changed what in which revision?

UserRevisionLine numberNew contents of line
akudohune 0:8215f0743d86 1
akudohune 0:8215f0743d86 2
akudohune 0:8215f0743d86 3
akudohune 0:8215f0743d86 4 #define RECEIVE_DATA_NUM 13
akudohune 0:8215f0743d86 5 #define SEND_DATA_NUM 6
akudohune 0:8215f0743d86 6
akudohune 0:8215f0743d86 7 #define KEYCODE 120
akudohune 0:8215f0743d86 8 #define CHECKCODE (RecData[DIRECTION] ^ RecData[DISTANCE] ^ RecData[SONIC1_1] ^ RecData[SONIC1_2] ^ RecData[SONIC2_1] ^ RecData[SONIC2_2] ^ RecData[SONIC3_1] ^ RecData[SONIC3_2] ^ RecData[SONIC4_1] ^ RecData[SONIC4_2] ^ RecData[XBEE])
akudohune 0:8215f0743d86 9 #define KEYCODE2 35
akudohune 0:8215f0743d86 10 #define CHECKCODE2 (SendData[DATA1] ^ SendData[DATA2] ^ SendData[DATA3] ^ SendData[DATA4])
akudohune 0:8215f0743d86 11
akudohune 0:8215f0743d86 12
akudohune 0:8215f0743d86 13 enum{
akudohune 0:8215f0743d86 14 KEY = 0,
akudohune 0:8215f0743d86 15 DIRECTION,
akudohune 0:8215f0743d86 16 DISTANCE,
akudohune 0:8215f0743d86 17 SONIC1_1,
akudohune 0:8215f0743d86 18 SONIC1_2,
akudohune 0:8215f0743d86 19 SONIC2_1,
akudohune 0:8215f0743d86 20 SONIC2_2,
akudohune 0:8215f0743d86 21 SONIC3_1,
akudohune 0:8215f0743d86 22 SONIC3_2,
akudohune 0:8215f0743d86 23 SONIC4_1,
akudohune 0:8215f0743d86 24 SONIC4_2,
akudohune 0:8215f0743d86 25 XBEE,
akudohune 0:8215f0743d86 26 CHECK,
akudohune 0:8215f0743d86 27 };
akudohune 0:8215f0743d86 28 enum{
akudohune 0:8215f0743d86 29 KEY2 = 0,
akudohune 0:8215f0743d86 30 DATA1,
akudohune 0:8215f0743d86 31 DATA2,
akudohune 0:8215f0743d86 32 DATA3,
akudohune 0:8215f0743d86 33 DATA4,
akudohune 0:8215f0743d86 34 CHECK2,
akudohune 0:8215f0743d86 35 };