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:
- 25:734a26538711
- Parent:
- 23:7d83af123c43
- Child:
- 28:d952367fc0fc
--- a/main.cpp Mon Oct 29 12:38:04 2018 +0000 +++ b/main.cpp Mon Oct 29 14:45:01 2018 +0000 @@ -155,7 +155,8 @@ current_state = waiting; //we start in state ‘waiting’ and current_state can be accessed by all functions u1 = 0.0f; //initial output to motors is 0. u2 = 0.0f; - bqc.add(&bqhigh).add(&bqnotch); // filter cascade for emg + bqc0.add(&bq0high).add(&bq0notch); // filter cascade for emg + bqc1.add(&bq1high).add(&bq1notch); // filter cascade for emg loop_ticker.attach(&loop_function, T); //Run the function loop_function 1000 times per second while (true) { } //Do nothing here (timing purposes)