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:
- 32:f535ace7c529
- Parent:
- 31:285c9898da03
- Child:
- 33:64fd1bd83bac
--- 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(){
