マザー 20151028 XBOX-XBEE
Dependencies: mbed
Fork of Nucleo_PS3_Jikken_XBOX by
Diff: main.cpp
- Revision:
- 13:5bccc2d600eb
- Parent:
- 12:6445a3c3d34c
- Child:
- 14:aaf2ae25e508
--- a/main.cpp Fri Oct 02 09:53:20 2015 +0000 +++ b/main.cpp Sun Oct 04 03:53:39 2015 +0000 @@ -141,17 +141,17 @@ double deg=32; while(true) { - //スイッチが押された時 + /*//スイッチが押された時 if(((int)DATA[1]&12)==12&&!btFlag){ wait(0.001f); Mechanum.putc(64); btFlag=true; Blue=0.0f;Green=0.8f;Red=0; vector=64; - } + }*/ //方向選択 - else if((int)deg==devideNum) + if(!btFlag) { deg=devidePoint((double)DATA[3],(double)DATA[2],15,360/devideNum); pc.printf("deg%lf\r\n",deg);