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:
- 18:266f1ffdc9c4
- Parent:
- 15:95034d92bc76
- Child:
- 19:07706535ff7b
--- a/header.h Thu Oct 03 13:35:27 2019 +0000 +++ b/header.h Thu Oct 03 17:50:52 2019 +0000 @@ -1,1 +1,10 @@ -double ControllerPID(double e, double Ts); //e = error, Ts = sampling time \ No newline at end of file +double ControllerPID(double e, double Ts); //e = error, Ts = sampling time + + +double motorAndEncoder(voltage1, periodMotor1, voltage2, periodMotor2, directionMotor1, directionMotor2, dt) + //voltage in PWM (between 0 and 1) + //period in seconds + //dt the time between measurements, i.o.w. Ticker timing + //directionMotor either 1 or 0 + //Returns (velocityMotor1, velocityMotor2, countsMotor1[1], countsMotor2[0]) + //Velocity in radians/s \ No newline at end of file