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@31:d1bd16a05148, 2019-10-09 (annotated)
- Committer:
- JordanO
- Date:
- Wed Oct 09 13:50:32 2019 +0000
- Revision:
- 31:d1bd16a05148
- Parent:
- 28:4a5671b3d88d
- Child:
- 32:da34d27a13f3
asdd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JornD | 24:d0ca537913c2 | 1 | #ifndef header_h |
JornD | 24:d0ca537913c2 | 2 | #define header_h |
JornD | 24:d0ca537913c2 | 3 | int AddInt(int a, int b); |
JordanO | 27:71be6e074d0f | 4 | |
JordanO | 18:266f1ffdc9c4 | 5 | double ControllerPID(double e, double Ts); //e = error, Ts = sampling time |
JordanO | 31:d1bd16a05148 | 6 | motorReturn motorAndEncoder(float PWM1, float PWM2, float dt) |
JornD | 24:d0ca537913c2 | 7 | #endif |
JordanO | 18:266f1ffdc9c4 | 8 | |
JornD | 24:d0ca537913c2 | 9 | //double motorAndEncoder(float voltage1, float periodMotor1, float voltage2, float periodMotor2, float dt, float &countsMotor1Return, float &countsMotor2Return, float &velocityMotor1Return, float &velocityMotor2Return); |
JordanO | 19:07706535ff7b | 10 | //voltage in PWM (between -1 and 1), -1 for negative direction full power, 1 for positive direction full power |
JordanO | 18:266f1ffdc9c4 | 11 | //period in seconds |
JordanO | 19:07706535ff7b | 12 | //dt the time between measurements, i.o.w. Ticker timing, for velocity calculation |
JordanO | 18:266f1ffdc9c4 | 13 | //Returns (velocityMotor1, velocityMotor2, countsMotor1[1], countsMotor2[0]) |
JornD | 23:767911637f3a | 14 | //Velocity in radians/s |
JornD | 23:767911637f3a | 15 | |
JornD | 24:d0ca537913c2 | 16 | //double ProcessEMG(double X); |