encoder
Dependencies: MODSERIAL mbed HIDScope biquadFilter
Fork of Project_script by
Revision 26:8fc7e88603f8, committed 2018-11-02
- Comitter:
- MarijkeZondag
- Date:
- Fri Nov 02 07:58:00 2018 +0000
- Parent:
- 25:c719346df3cd
- Commit message:
- ,.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 30 21:27:35 2018 +0000 +++ b/main.cpp Fri Nov 02 07:58:00 2018 +0000 @@ -43,7 +43,6 @@ //double u_total = 0; -double pi=3.14159; double i=0; //Tickers @@ -150,7 +149,7 @@ if(encoder<5000 && encoder>-5000) //limieten van de translatie 11760 encoder counts { pwmpin1 = fabs(u); //u_total moet nog geschaald worden om in de motor gevoerd te worden!!! - directionpin1.write(u > 0.0f); + directionpin1.write(u < 0.0f); } else {