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:
- 2:002f6b69ebaf
- Parent:
- 1:40470bc517f1
- Child:
- 3:99a568200720
File content as of revision 2:002f6b69ebaf:
#include "mbed.h" #include "MODSERIAL.h" DigitalOut myled(LED_GREEN); MODSERIAL pc(USBTX, USBRX); int main() { //int i = 0; pc.baud(115200); pc.printf("Hello World!\r\n"); while (true) { pc.putc(pc.getc()); myled = !myled; // toggle a led } }