PID Motor Position Control using ESP8266 WiFi Module, US Digital E4P-100-079, LMD18200 H-Bridge Break Out, and HN-GH12-1634T 30:1 200RPM Motor
Dependencies: 4DGL-uLCD-SE PID QEI SDFileSystem mbed ESP8266_pid_mtrPos_webserver_SDcard_v2
Dependents: ESP8266_pid_mtrPos_webserver_SDcard_v2
Diff: main.cpp
- Revision:
- 1:26a13ee574e9
- Parent:
- 0:a2a238159653
- Child:
- 2:af4befcd02d6
diff -r a2a238159653 -r 26a13ee574e9 main.cpp --- a/main.cpp Tue Nov 24 23:04:54 2015 +0000 +++ b/main.cpp Wed Nov 25 01:11:56 2015 +0000 @@ -137,6 +137,7 @@ /***********************************************************************************/ // Working paramater variables setpoint = setpoint_init; + encoder.reset(); feedback = encoder.read(); float kp = kp_init; float ki = ki_init;