pid gecomment
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of a_pid_kal_end_def by
Diff: main.cpp
- Revision:
- 39:c933a6c2b730
- Parent:
- 38:23601b26bb84
- Child:
- 40:187ef29de53d
--- a/main.cpp Fri Oct 28 13:05:13 2016 +0000 +++ b/main.cpp Mon Oct 31 15:11:42 2016 +0000 @@ -21,7 +21,7 @@ BiQuad filterhigh(9.1497e-01, -1.8299e+00, 9.1497e-01, -1.8227e+00, 8.3718e-01); // BiQuad filterlow ( 3.9130e-05 , 7.8260e-05 , 3.9130e-05, -1.9822e+00 , 9.8239e-01); // -BiQuad notch( 2.0083e-02 , 4.0167e-02, 2.0083e-02 , -1.5610e+00 , 6.4135e-01); +BiQuad notch( 9.9376e-01 , -1.8902e-00, 9.9376e-01 , -1.8902e-00 , 9.875e-01); //functions which are called in ticker void filter(){ @@ -39,7 +39,7 @@ {onoffsignal=0;} //send signals to scope - scope.set(0, emg_filtered_notch ); //set emg signal to scope in channel 1 + scope.set(0, emg_biceps_right ); //set emg signal to scope in channel 1 scope.set(1, emg_abs_biceps_right); scope.set(2, emg_filtered_biceps_right); scope.send(); //send all the signals to the scope