Yeongsoo Kim / Mbed 2 deprecated Mecha_Speed_control

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
yeongsookim
Date:
Tue Nov 10 14:35:45 2020 +0000
Parent:
2:8a7b4b3cb4c1
Child:
4:050d1efdee90
Commit message:
testt

Changed in this revision

Controller/SpeedController.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Controller/SpeedController.h	Tue Nov 10 13:48:28 2020 +0000
+++ b/Controller/SpeedController.h	Tue Nov 10 14:35:45 2020 +0000
@@ -11,7 +11,6 @@
     float ki;
     float kd;
     float max_windup;
-    float alpha;
     float umin;
     float umax;
 
--- a/main.cpp	Tue Nov 10 13:48:28 2020 +0000
+++ b/main.cpp	Tue Nov 10 14:35:45 2020 +0000
@@ -13,7 +13,7 @@
 DigitalOut myled1(LED1);
 HallSensor hall (p29);
 Motor motor (p23, p24, p25, p26);
-PIDController speedController(0.1, 0.5, 0.0, 100.0, 0.0, -1.0, 20.0);//0.05514
+PIDController speedController(0.1, 0.5, 0.0, 100.0, 0.0, -1.0, 100.0);//0.05514
 
 //Interrupt is generated every 1ms and count is increased by 1
 unsigned int uiFlag_1ms = 0;