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: mbed HIDScope QEI biquadFilter
main.cpp
- Committer:
- CasperK
- Date:
- 2018-10-22
- Revision:
- 0:1b2c842eca42
- Child:
- 1:afb820c6fc0d
File content as of revision 0:1b2c842eca42:
#include "mbed.h"
enum State(PositionCalibration, EmgCalibration, Movement, KILL);
int main()
{
State = PositionCalibration;
while (true) {
switch(States) {
case PositionCalibration:
if (!KillSwitch) {
State = KILL;
Break;
}
Break;
case EmgCalibration:
if (!KillSwitch) {
State = KILL;
Break;
}
Break;
case Movement:
if (!KillSwitch) {
State = KILL;
Break;
}
Break;
case KILL:
turnoffmotors() //placeholder
flashsos() //placeholder
if (!KillSwitch){
State = PositionCalibration;
}
Break;
}
}