Wifi Webserver to control the Speed of a motor using PID
Dependencies: 4DGL-uLCD-SE PID QEI SDFileSystem mbed
Diff: main.cpp
- Revision:
- 2:f579e98b82de
- Parent:
- 1:1490beafb4f7
- Child:
- 3:2151f4b584b5
--- a/main.cpp Wed Nov 25 02:49:45 2015 +0000 +++ b/main.cpp Wed Nov 25 20:49:22 2015 +0000 @@ -68,7 +68,7 @@ /*********PID CONTROLLER SPECIFIC DECLARATIONS********************************/ /*****************************************************************************/ -static float setpoint, feedback, output; +float setpoint, feedback, output; const float output_lower_limit = -1.0; const float output_upper_limit = 1.0; const float FEEDBACK_SCALE = 1.0/3000.0; // Scale feedback to 1rev/3000cnts