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: BluetoothSoftSerial SoftSerial mbed
Revision 3:0cefa49d6c8d, committed 2015-12-18
- Comitter:
- gbm
- Date:
- Fri Dec 18 13:05:23 2015 +0000
- Parent:
- 2:c5495669e122
- Commit message:
- Nueva kalibraci?n coeficiente proporcionalidad
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
diff -r c5495669e122 -r 0cefa49d6c8d main.cpp
--- a/main.cpp	Thu Dec 10 10:08:48 2015 +0000
+++ b/main.cpp	Fri Dec 18 13:05:23 2015 +0000
@@ -68,7 +68,7 @@
     //configura el offset de voltaje a sumar a la sonda
     //pc.printf("Configura el offset de voltaje a sumar a la sonda\r\n");
     salida_offset = 0.5;
-    float pendiente = 201.7635;
+    float pendiente = 201.206437;
     float offset = 0;
     
     //apaga todos los LEDs
@@ -98,8 +98,8 @@
     led2 = 1;   // apaga el led verde
     wait(1);
     
-    // asigna la función medir al temporizador con intervalo 50 us
-    //pc.printf("Asigna la funcion medir al temporizador con intervalo 50 us\r\n");
+    // asigna la función medir al temporizador con intervalo 200 us
+    //pc.printf("Asigna la funcion medir al temporizador con intervalo 200 us\r\n");
     medidor.attach(&medir, 1.0/frecuencia_muestreo);
  
     // spin in a main loop. medidor will interrupt it to call medir