kusano kiyoshige / Mbed 2 deprecated 17robo_fuzi

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_Practice1 by kusano kiyoshige

Revision:
33:64fd1bd83bac
Parent:
32:f535ace7c529
Child:
49:b041c815c063
--- a/encorder.h	Tue Aug 29 03:01:50 2017 +0000
+++ b/encorder.h	Tue Aug 29 06:56:32 2017 +0000
@@ -111,7 +111,7 @@
         return radian;
     }
     
-    long pulse(){
+    int pulse(){
         return count;
     }
     
@@ -128,7 +128,7 @@
     InterruptIn B;
 
     int ppr;
-    signed long count;
+    signed int count;
     float radian,oldtheta;
     float w,v,n;
     float degree, deg_cylinder;