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: FastPWM mbed QEI biquadFilter HIDScope MODSERIAL
Diff: main.cpp
- Revision:
- 48:36cdeaac67c5
- Parent:
- 43:e8f2193822b7
- Child:
- 49:48363ca21a15
--- a/main.cpp Wed Oct 31 16:32:36 2018 +0000 +++ b/main.cpp Wed Oct 31 19:31:06 2018 +0000 @@ -225,7 +225,7 @@ void turnf() // main function for movement of motor 1, all above functions with an extra tab are called { //float refvaluef = pi/4.0f; - float refvaluef = DesiredAnglef(); // different minus sign per motor + float refvaluef = -DesiredAnglef(); // different minus sign per motor int countsf = Countsfinput(); // different encoder pins per motor currentanglef = CurrentAngle(countsf); // different minus sign per motor float PIDcontrolf = PIDcontrollerf(refvaluef,currentanglef); // same for every motor