Jinhyuk Yoon / ESCON_rpm

Dependents:   200319_ESCON_motor

Files at this revision

API Documentation at this revision

Comitter:
dsfqfqds
Date:
Mon Mar 23 13:10:47 2020 +0000
Parent:
0:bdb5e4c36d39
Commit message:
HRI class in POSTECH

Changed in this revision

ESCON_rpm.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ESCON_rpm.cpp	Mon Mar 23 11:21:16 2020 +0000
+++ b/ESCON_rpm.cpp	Mon Mar 23 13:10:47 2020 +0000
@@ -16,5 +16,5 @@
 }
 
 double ESCON_rpm::read(void) {
-    return grad*(rpm*max_volt - min_volt) + min_rpm;
+    return grad*(rpm*(max_volt-min_volt) - min_volt) + min_rpm;
 }