2015 robotic contest arakawa A / Mbed 2 deprecated Nucleo_PS3_Jikken_new

Dependencies:   mbed

Fork of Nucleo_PS3_Jikken_XBEE by 2015 robotic contest arakawa A

Files at this revision

API Documentation at this revision

Comitter:
nodoame
Date:
Fri Oct 30 08:38:18 2015 +0000
Parent:
28:37147ae0df52
Child:
30:0226cfd4965a
Commit message:
201510030; XBOX??

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Oct 30 07:33:29 2015 +0000
+++ b/main.cpp	Fri Oct 30 08:38:18 2015 +0000
@@ -25,6 +25,7 @@
 #define stopCount 33
 #define shotWait 0.5
 #define isXBOX true
+#define XBOXrate 19200
 
 Serial pc(SERIAL_TX, SERIAL_RX);
 //Serial Dev(D8,D2);//コントローラー
@@ -228,7 +229,7 @@
     pc.baud(230400);
     //Dev.baud(921600);//PS3
     //Dev.baud(57600);//XBOX
-    Dev.baud((isXBOX)?(57600):(921600));
+    Dev.baud((isXBOX)?(XBOXrate):(921600));
     Mechanum.baud(230400);
     DigitalIn bt(USER_BUTTON);
     Dev.attach(num,Serial::RxIrq);//受信割り込み設定