Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Diff: encorder.h
- 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;
