![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
encoder
Dependencies: MODSERIAL mbed HIDScope biquadFilter
Fork of Project_script by
Diff: main.cpp
- Revision:
- 26:8fc7e88603f8
- Parent:
- 25:c719346df3cd
--- 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 {