FSG / System_

Fork of System_7_14 by Troy Holley

Revision:
4:66f2b18a16a4
Parent:
3:9764b0bd8cb9
Child:
5:26c9083b1bf2
--- a/conversions.cpp	Fri Jul 07 21:22:25 2017 +0000
+++ b/conversions.cpp	Mon Jul 17 14:24:41 2017 +0000
@@ -2,7 +2,16 @@
 
 float counts_to_dist(int count)
 {
-    float conv = 0.001220703*(107.39*count-6.8854)-6;
+    //float conv = 0.001220703*(107.39*count-6.8854)-6; //MELISSA
+    //float conv = .13109129517*count-6; // TRENT
+    
+    //TROY
+    float conv = -0.1243 * count + 378.31;  //created on 7/13/2017 by reading from extended (0 mm) end of piston
     return conv;
 
-};
\ No newline at end of file
+};
+
+//had an issue with the original equation
+//need to double check the counts VS position (with a tape measurer)
+
+//adc.ch0 or whatever gives you this
\ No newline at end of file