中継機能つけた受け取りオムニ
Dependencies: mbed MultiSerial
Diff: main.cpp
- Revision:
- 32:33078ddc3bcb
- Parent:
- 26:9a7e9dd2746f
--- a/main.cpp Tue Oct 07 08:01:29 2014 +0000 +++ b/main.cpp Tue Oct 07 10:24:14 2014 +0000 @@ -135,10 +135,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