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
header.h@21:0a37e3280bbd, 2019-10-04 (annotated)
- Committer:
- JordanO
- Date:
- Fri Oct 04 10:07:27 2019 +0000
- Revision:
- 21:0a37e3280bbd
- Parent:
- 20:19f7b0d5ec7b
- Child:
- 22:4197629a300f
Compiled
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JordanO | 18:266f1ffdc9c4 | 1 | double ControllerPID(double e, double Ts); //e = error, Ts = sampling time |
JordanO | 18:266f1ffdc9c4 | 2 | |
JordanO | 18:266f1ffdc9c4 | 3 | |
JordanO | 21:0a37e3280bbd | 4 | double motorAndEncoder(float voltage1, float periodMotor1, float voltage2, float periodMotor2, float dt); |
JordanO | 19:07706535ff7b | 5 | //voltage in PWM (between -1 and 1), -1 for negative direction full power, 1 for positive direction full power |
JordanO | 18:266f1ffdc9c4 | 6 | //period in seconds |
JordanO | 19:07706535ff7b | 7 | //dt the time between measurements, i.o.w. Ticker timing, for velocity calculation |
JordanO | 18:266f1ffdc9c4 | 8 | //Returns (velocityMotor1, velocityMotor2, countsMotor1[1], countsMotor2[0]) |
JordanO | 18:266f1ffdc9c4 | 9 | //Velocity in radians/s |