Control up to two motors using filtered EMG signals and a PID controller
Dependencies: FastPWM HIDScope MODSERIAL QEI Matrix biquadFilter controller errorFetch mbed motorConfig refGen MatrixMath inverseKinematics
Fork of Minor_test_serial by
main.cpp
- Committer:
- tvlogman
- Date:
- 2017-09-12
- Revision:
- 3:99a568200720
- Parent:
- 2:002f6b69ebaf
- Child:
- 4:f74c981d9bc0
- Child:
- 6:5f433011819f
File content as of revision 3:99a568200720:
#include "mbed.h" #include "MODSERIAL.h" DigitalOut ledG(LED_GREEN); DigitalOut ledR(LED_RED); DigitalOut ledB(LED_BLUE); MODSERIAL pc(USBTX, USBRX); int main() { //int i = 0; pc.baud(115200); pc.printf("Hello World!\r\n"); ledR = true; ledB = true; while (true) { int keyPress = pc.getc(); pc.putc(keyPress); ledG = !ledG; // toggle a led } }