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 demomode
Revision 28:5250ef542ffd, committed 2019-10-07
- Comitter:
- MarliesWeggemans
- Date:
- Mon Oct 07 09:17:55 2019 +0000
- Parent:
- 27:6595a0dffcde
- Commit message:
- main incl. comments
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Oct 07 08:03:05 2019 +0000 +++ b/main.cpp Mon Oct 07 09:17:55 2019 +0000 @@ -22,13 +22,13 @@ Ticker ticker; // opzetten van hoekbepaling -QEI encoder(D13,D12,NC,32,QEI::X4_ENCODING); -QEI encoder_2(D11,D10,NC,32,QEI::X4_ENCODING); +QEI encoder(D13,D12,NC,64,QEI::X4_ENCODING); // Pulsesperrevolution=64 +QEI encoder_2(D11,D10,NC,64,QEI::X4_ENCODING); //Global values int motordir1 = 1; int motordir2 = 1; -double Kp = 17.5; +double Kp = 17.5; //proportional gain = tuning parameter // aparte functies //functie motor aansturen met pot