PID control with a lowpass filter to make the motor follow pot1
Dependencies: HIDScope QEI mbed
Fork of PID_control_with_lowpass by
Diff: main.cpp
- Revision:
- 4:4d4d7343406d
- Parent:
- 2:707567853e34
- Child:
- 5:43e34b6d66af
diff -r 707567853e34 -r 4d4d7343406d main.cpp --- a/main.cpp Thu Sep 24 16:26:32 2015 +0000 +++ b/main.cpp Mon Sep 28 09:23:16 2015 +0000 @@ -1,3 +1,4 @@ +///////////////////////////////////////////////#INCLUDES////////////////////////////////////////// #include "mbed.h" #include "QEI.h" #include "HIDScope.h" @@ -90,7 +91,7 @@ ///////////////////////////////////////////////////////////GO-FLAGS AND ACTIVATION FUNCTIONS/////////////////////////////// //go flags -volatile bool scopedata_go=false, pid_control_go=false; +volatile bool scopedata_go=false, pid_control_go=false; //acvitator functions @@ -151,6 +152,7 @@ scopedata(); scopedata_go=false; } - return 0; + } + return 0; } \ No newline at end of file