FSRforCookieJar

Fork of FSR by Chenkai Shao

Files at this revision

API Documentation at this revision

Comitter:
cshao06
Date:
Wed Oct 21 21:20:14 2015 +0000
Parent:
1:6b702226a5d3
Child:
3:6fc368701789
Commit message:
FSR

Changed in this revision

FSR.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/FSR.cpp	Wed Oct 21 21:19:14 2015 +0000
+++ b/FSR.cpp	Wed Oct 21 21:20:14 2015 +0000
@@ -20,7 +20,7 @@
 float FSR::readWeight()
 {
     float read = _ain;
-    float rfsr = _r * 3.3 / read - _r;
+    float rfsr = _r * 1 / read - _r;
     float slope = (4 - 2) / (log10(6.2) - log10(0.25));
     float a = log10(rfsr);
     if (a < log10(6.2))