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: pid.h
- Revision:
- 8:1ce513eff545
- Parent:
- 6:95722ada4706
- Child:
- 10:332a4ad5911d
--- a/pid.h Fri Dec 04 05:31:17 2015 +0000 +++ b/pid.h Fri Dec 04 05:56:00 2015 +0000 @@ -38,7 +38,7 @@ #ifndef PID_H #define PID_H #include"mbed.h" - +#include "util.h" class ctrl{ public: @@ -55,9 +55,9 @@ float getT(); float getR(); float total(); - void adjust(float xSpeed,float ySpeed,float k1, float k2); + void adjust(float xSpeed,float L, float R); void setErr(); - + void updateErr(float e); private: float error;