Nieuwe kinematica + potmeter
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of Project_script_union_potmeter by
Diff: main.cpp
- Revision:
- 20:bd9495b31f50
- Parent:
- 19:466ada92bf65
- Child:
- 21:1da43fdbd254
--- a/main.cpp Mon Oct 22 12:57:28 2018 +0000 +++ b/main.cpp Mon Oct 22 13:00:11 2018 +0000 @@ -28,7 +28,6 @@ //HIDscope Ticker sample_timer; HIDScope scope( 2 ); -DigitalOut led(LED1); //Global variables int encoder = 0; //Starting point encoder @@ -86,7 +85,6 @@ * Finally, send all channels to the PC at once */ scope.send(); /* To indicate that the function is working, the LED is toggled */ - led = !led; } void EMGFilter0() @@ -179,7 +177,7 @@ ledg = 0; } - if(x>=4) //Reset back to x = 0 + if(x==4) //Reset back to x = 0 { x = -1; }