Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed Servo
Diff: main.cpp
- Revision:
- 36:dc0571d14e30
- Parent:
- 35:6110d0b5513b
- Child:
- 37:5ddfd9e6cdb2
diff -r 6110d0b5513b -r dc0571d14e30 main.cpp --- a/main.cpp Tue Oct 30 09:11:19 2018 +0000 +++ b/main.cpp Wed Oct 31 11:50:28 2018 +0000 @@ -7,10 +7,6 @@ #include "kinematics.h" #include "processing_chain_emg.h" -//Define objects -MODSERIAL pc(USBTX, USBRX); -HIDScope scope(2); - // emg inputs AnalogIn emg0( A0 ); AnalogIn emg1( A1 ); @@ -109,7 +105,6 @@ motor2_dir = u2 > 0.0f; static int output_counter = 0; output_counter++; - if (output_counter == 100) {pc.printf("Something something... %f",u1); output_counter = 0;} //Print to screen at 10 Hz with MODSERIAL } void unsuppressing_button(){ @@ -331,7 +326,6 @@ int main() { - pc.baud(115200); motor1_pwm.period_us(60); motor2_pwm.period_us(60); current_state = waiting; //we start in state ‘waiting’ and current_state can be accessed by all functions