Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: motor.h
- Revision:
- 2:3faf5dcde08f
- Parent:
- 1:c97f8bcd6c0f
- Child:
- 3:94db629c0a83
--- a/motor.h Sat Aug 31 15:58:46 2013 +0000
+++ b/motor.h Sat Sep 14 16:22:37 2013 +0000
@@ -24,15 +24,20 @@
int currentSpeed;
int getDecoderCount();
+ void resetPID();
+
//void pid();
int setPoint;
float pMulti;
float iMulti;
- int error;
- int prevError;
+ float dMulti;
+ float error;
+ float prevError;
float P;
float I;
+ float D;
+ float minPwm;
};
#endif
\ No newline at end of file
