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.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: header.h
- Revision:
- 27:71be6e074d0f
- Parent:
- 24:d0ca537913c2
- Child:
- 28:4a5671b3d88d
--- a/header.h Wed Oct 09 07:11:45 2019 +0000 +++ b/header.h Wed Oct 09 12:56:35 2019 +0000 @@ -1,7 +1,9 @@ #ifndef header_h #define header_h int AddInt(int a, int b); + double ControllerPID(double e, double Ts); //e = error, Ts = sampling time +motorReturn motorAndEncoder(float PWM1, float PWM2, float dt) #endif //double motorAndEncoder(float voltage1, float periodMotor1, float voltage2, float periodMotor2, float dt, float &countsMotor1Return, float &countsMotor2Return, float &velocityMotor1Return, float &velocityMotor2Return);