中継機能つけた受け取りオムニ
Dependencies: mbed MultiSerial
Diff: main.cpp
- Revision:
- 30:00277f63ffeb
- Parent:
- 29:7a8efb8a9af8
- Child:
- 31:934a8778c431
- Child:
- 33:9c98ab97084e
--- a/main.cpp Tue Oct 07 10:07:56 2014 +0000 +++ b/main.cpp Tue Oct 07 10:09:54 2014 +0000 @@ -178,10 +178,10 @@ } /* Direction of movement */ - if(packet.leg&R_D) motors = 0x55; //01010101 R 接続に気をつけること - if(packet.leg&R_U) motors = 0xAA; //10101010 L 多分モータードライバの信号線をそれぞれ逆にすればOKかな - if(packet.leg&R_R) motors = 0x5A; //01011010 U - if(packet.leg&R_L) motors = 0xA5; //10100101 D + if(packet.leg&R_R) motors = 0x55; //01010101 R 接続に気をつけること + if(packet.leg&R_L) motors = 0xAA; //10101010 L 多分モータードライバの信号線をそれぞれ逆にすればOKかな + if(packet.leg&R_U) motors = 0x5A; //01011010 U + if(packet.leg&R_D) motors = 0xA5; //10100101 D /* Turn circling */ if(packet.leg&L_L) motors = 0x66; //01100110