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.
Diff: sensors/sensors.cpp
- Revision:
- 27:d392a95f4799
- Parent:
- 26:5fb1aa9cb7f0
- Child:
- 32:aee87dcaf7ca
--- a/sensors/sensors.cpp Mon May 06 06:28:41 2019 +0000
+++ b/sensors/sensors.cpp Wed May 08 02:55:40 2019 +0000
@@ -46,6 +46,7 @@
int FileOpen() //1:異常終了
{
+ printf("file open\r\n");
if ((fp = fopen(kFileName, "w")) == NULL) {
printf("error : FileSave()\r\n");
return 1;
@@ -93,7 +94,7 @@
}
float GetFilteredDist_cm(HCSR04 & sensor, LowPassFilter & filter)
{
- wait_ms(30);//60
+ wait_ms(90);//60
sensor.start();
wait_ms(30);
float raw_data = sensor.get_dist_cm();