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
Revision 1:26a13ee574e9, committed 2015-11-25
- Comitter:
- electromotivated
- Date:
- Wed Nov 25 01:11:56 2015 +0000
- Parent:
- 0:a2a238159653
- Child:
- 2:af4befcd02d6
- Commit message:
- A bit of clean up no major changes;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;