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: Control_Yokutan_CANver1 ADXL345_I2C mbed MPU6050
Fork of Souda_Yokutan_ver528TF by
Revision 41:efebfdd955ac, committed 2017-03-18
- Comitter:
- tsumagari
- Date:
- Sat Mar 18 14:10:10 2017 +0000
- Branch:
- XBus???
- Parent:
- 40:ad98da5da7bf
- Commit message:
- 3?18;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Mar 11 22:42:45 2017 +0000
+++ b/main.cpp Sat Mar 18 14:10:10 2017 +0000
@@ -164,8 +164,8 @@
float SampleFloat(float f) //小数点以下第二位を切り捨て
{
- int temp = ((f + 0.025) * 100.0) / 5;
- float result = temp / 20.0;
+ int temp = ((f + 0.05) * 100.0) / 10;
+ float result = temp /10.0;
return result;
}
