Yuta Uenodai / encoder

Dependents:   backdrive backdrive_3

Revision:
6:36805e006b09
Parent:
5:32ee588c735d
Child:
7:1b81a9773bdf
--- a/encoder.cpp	Tue Apr 30 04:11:47 2019 +0000
+++ b/encoder.cpp	Wed Jun 19 01:46:13 2019 +0000
@@ -21,6 +21,8 @@
 float Encoder::getState(int ch){
     float output;
     switch(ch){
+        case COUNT:
+            output = count[NORMAL][CURRENT];
         case DISTANCE:
             output = distance;
             break;