Overzetten
Dependencies: HIDScope MODSERIAL mbed
Diff: main.cpp
- Revision:
- 9:836d6ac23481
- Parent:
- 8:81f2c8ae4427
diff -r 81f2c8ae4427 -r 836d6ac23481 main.cpp --- a/main.cpp Fri Oct 12 08:53:12 2018 +0000 +++ b/main.cpp Fri Oct 12 09:27:32 2018 +0000 @@ -18,8 +18,6 @@ HIDScope scope( 2 ); DigitalOut led(LED1); -Ticker Motor_Ticker1; -Ticker Motor_Ticker2; Ticker EMG_Read_Ticker; volatile float Bicep_Right = 0.0; @@ -66,7 +64,7 @@ PwmPin2 = fabs(0.0); } - else if (Bicep_Right > 0.6f) + else if (Bicep_Right > 0.55f) { float u = 0.8f; //determine useful value, this is not final DirectionPin1 = u > 0.0f; //either true or false