マザー 20151008 アンカーをジョイスティックで解除
Dependencies: mbed
Fork of Nucleo_PS3_Jikken_2 by
Diff: main.cpp
- Revision:
- 2:c5f038d7be1f
- Parent:
- 1:a3bfd422ea9e
- Child:
- 3:c290afbacd1c
--- a/main.cpp Sat Aug 08 06:46:52 2015 +0000 +++ b/main.cpp Sun Aug 09 06:19:05 2015 +0000 @@ -188,12 +188,12 @@ else if(!getBt(btR)) shotRf=true; //deg=pointToDeg((double)DATA[3],(double)DATA[2],30); - deg=devidePoint((double)DATA[3],(double)DATA[2],15,11.25); + deg=devidePoint((double)DATA[3],(double)DATA[2],15,45); //printf("%lf:%d:%d\r\n",deg,(int)DATA[3],(int)DATA[2]); val=valueForMechanum(deg,getBt(trigL),getBt(trigR),getBt(btSph)); //printf("val:%d\r\n",val); Mechanum.putc(val); wait(0.03f); - printf("X:%dX1:%d:bt%dval:%di2cS:%d\r\n",(int)DATA[0],(int)DATA[1],getBt(btSqa),val,i2cS); + printf("deg:%lfX1:%d:bt%dval:%di2cS:%d\r\n",deg,(int)DATA[1],getBt(btSqa),val,i2cS); } } \ No newline at end of file