Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Nucleo_PS3_Jikken_XBEE by
Diff: main.cpp
- Revision:
- 31:d9c70bcdb54e
- Parent:
- 30:0226cfd4965a
- Child:
- 32:34f14f9eee7f
--- a/main.cpp Thu Nov 05 10:03:35 2015 +0000 +++ b/main.cpp Mon Nov 09 10:33:14 2015 +0000 @@ -21,7 +21,7 @@ #define TL 200 #define TNR 138//204 #define TNL 150 -#define debugFlag 1 +#define debugFlag 0 #define stopCount 33 #define shotWait 0.5 #define isXBOX true @@ -34,6 +34,7 @@ I2C i2c(D14,D15);//sda,scl //const int airAddr=0x20; const int airAddr=0xd0; +const int airAddr2=0xf0; const int airReg=10; const int valveAddr=0xC0; BusOut dI2c(PC_0,PC_1,PC_2,PC_3);//i2cデバッグ @@ -273,6 +274,8 @@ kRed=shotToDenziben(airReg,1,1,airAddr); wait(shotWait); kRed=shotToDenziben(airReg,0,1,airAddr); + /*wait(0.1); + kRed=shotToDenziben(airReg,2,1,airAddr2);*/ kRed=0; } @@ -288,7 +291,7 @@ kRed=0; } - //射出 + /*//射出 else if(t){ //pc.printf("T\r\n"); pushF=true; @@ -296,7 +299,7 @@ wait(shotWait); kRed=shotToDenziben(airReg,0,1,airAddr); kRed=0; - } + }*/ }while(false); @@ -346,7 +349,6 @@ } else { val=valueForMechanum(deg,devideNum,getBt(trigL),getBt(trigR),getBt(btSph)); - pc.printf("deg:%lf\r\n",deg); }