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.
Dependents: LecturasUltrasonico ROBOT_TOPICO_L
Revision 1:e322b577eafb, committed 2014-04-22
- Comitter:
- caeguser
- Date:
- Tue Apr 22 16:55:16 2014 +0000
- Parent:
- 0:b6494f705338
- Commit message:
- -; ; ; ||
Changed in this revision
| ultrasonico.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ultrasonico.cpp Fri Mar 28 02:35:48 2014 +0000
+++ b/ultrasonico.cpp Tue Apr 22 16:55:16 2014 +0000
@@ -16,7 +16,7 @@
flag=1;
}else if(_pin==0&&flag==1){
t.stop();
- distancia=t.read_us()/147.00;
+ distancia=t.read_us()/147.0000;
t.reset();
flag=0;
flag2=1;
@@ -37,7 +37,7 @@
flag=1;
}else if(_pin==0&&flag==1){
t.stop();
- distancia=(t.read_us()/147.00)*2.54;
+ distancia=(t.read_us()/147.0000)*2.54;
t.reset();
flag=0;
flag2=1;