De hele robot in 1 keer bam
Dependencies: mbed QEI Servo HIDScope biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- Revision:
- 18:9f24792bb39a
- Parent:
- 17:e4e7b1fbb263
- Child:
- 19:94dc52f8a59e
--- a/main.cpp Fri Oct 25 07:50:35 2019 +0000 +++ b/main.cpp Fri Oct 25 07:52:41 2019 +0000 @@ -15,7 +15,7 @@ */ // PC serial connection -HIDScope scope( 5 ); +HIDScope scope( 4 ); MODSERIAL pc(USBTX, USBRX); // LED @@ -29,7 +29,7 @@ InterruptIn button3(SW3); // EMG Substates -enum EMG_States = { emg_wait, emg_cal_MVC, emg_cal_rest, emg_scale, emg_operation }; // Define EMG substates +enum EMG_States { emg_wait, emg_cal_MVC, emg_cal_rest, emg_scale, emg_operation }; // Define EMG substates EMG_States emg_curr_state; // Initialize EMG substate variable // Global variables for EMG reading