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 by
Diff: main.cpp
- Revision:
- 2:c5f038d7be1f
- Parent:
- 1:a3bfd422ea9e
- Child:
- 3:c290afbacd1c
diff -r a3bfd422ea9e -r c5f038d7be1f main.cpp
--- 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
