sampleProgram

Dependencies:   QEI accelerator bit_test cyclic_io cyclic_var cylinder event_var limit mbed mecanum motor_drive pid pid_encoder rs422_put sbdbt servo

Fork of 17robo_fuzi by kusano kiyoshige

Revision:
32:f535ace7c529
Parent:
31:285c9898da03
Child:
33:64fd1bd83bac
diff -r 285c9898da03 -r f535ace7c529 encorder.h
--- a/encorder.h	Tue Aug 29 02:07:56 2017 +0000
+++ b/encorder.h	Tue Aug 29 03:01:50 2017 +0000
@@ -96,7 +96,7 @@
         oldtheta = radian;
         //pid_cal(target, n/Nmax, dt);
         //deg_cylinder = (count / 1200) * 360 * 3 / 20;
-        position_cal(target, (float)count, dt);
+        position_cal(target, (float)degree, dt);
     }
 
     float deg(){