lyre liu / Mbed 2 deprecated project1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
lyreliu
Date:
Fri Mar 11 11:55:40 2016 +0000
Parent:
17:688db5210e6b
Commit message:
program final;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Mar 10 15:02:45 2016 +0000
+++ b/main.cpp	Fri Mar 11 11:55:40 2016 +0000
@@ -45,7 +45,7 @@
     
     vol_ref = 3.3;
     
-    mass = 333.3333*vol_ref*vol/RATIO ;        //The compute function of mass from the voltage
+    mass = 334.36*vol_ref*vol/RATIO-0.12513 ;        //The compute function of mass from the voltage
 }
 
 void SerialInit(void)