changed the location of all constants to Constants.h

Dependencies:   HIDScope QEI biquadFilter mbed

Fork of State_machine by Casper Kroon

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;           
    }
}