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.
Dependents: buttoncontrol includeair includeair Oudverslag
Diff: controlandadjust.h
- Revision:
- 2:a1b6930947a9
- Parent:
- 1:ece12a295ce3
- Child:
- 3:8e6dacabe898
diff -r ece12a295ce3 -r a1b6930947a9 controlandadjust.h
--- a/controlandadjust.h Tue Oct 06 12:35:20 2015 +0000
+++ b/controlandadjust.h Tue Oct 06 12:44:50 2015 +0000
@@ -20,7 +20,12 @@
class controlandadjust
{
public:
- controlandadjust();
+///Instantiate the controller
+ controlandadjust(void);
+ /**P controller
+ *@param error1 : Error from motor 1
+ *@param error2 : Error from motor 2
+ *@param Kp : Desired value of Kp for your controller*/
void P(float error1, float error2 ,float Kp );
void PI(float error1, float error2, float Kp, float Ki,float Ts, float &error1_int, float &error2_int);
void PID(float error1, float error2, float Kp, float Ki,float Kd,float Ts,