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: biquadFilter mbed MODSERIAL
Diff: main.cpp
- Revision:
- 16:cd11083c754a
- Parent:
- 15:3a09783b2406
- Child:
- 17:358e7e1213cf
--- a/main.cpp Mon Nov 06 11:23:38 2017 +0000 +++ b/main.cpp Mon Nov 06 17:32:09 2017 +0000 @@ -199,10 +199,10 @@ pc.printf("Xin is %i\n",Xin); led_G=0; led_R=1; - wait(0.2); + wait(0.2); //time led green on led_G=1; led_R=0; - wait(0.5); + wait(0.5); // prevent multiple counts for one aanspanning } // Couting system for values of X @@ -458,7 +458,7 @@ //calculate the setpoint for each time step float Pst() { - Pstx=Pex+Vex*T; + Pstx=Pex+Vex*T; //void maken (ook bij de rest) Psty=Pey+Vey*T; touwlengtes(); Pex=Pstx; @@ -558,5 +558,4 @@ controlmotor3.attach(&MotorController3, 0.01); wait(4.0f); // om te zorgen dat je niet meteen tijdens t zakken nieuwe input moet geven } - } \ No newline at end of file