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.orig
- Committer:
- tvlogman
- Date:
- 2017-11-01
- Revision:
- 44:d157094b48d5
- Parent:
- 7:1bffab95fc5f
File content as of revision 44:d157094b48d5:
#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"); pc.printf("Bananas"); ledR = true; ledB = true; while (true) { int keyPress = pc.getc(); pc.putc(keyPress); ledG = !ledG; // toggle a led } }