![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Corrected header file include guards.
Dependencies: FiniteStateMachine HipControl Knee LinearBlend1 LocalFileSystem_Read dataComm hapticFeedback initExoVars mbed Blend_Generator Brad_poly_gait Gait_Generator MM_gait Encoders IMUdriver
Fork of Motion Control by
Diff: main.cpp
- Revision:
- 37:37ba5cb94bec
- Parent:
- 36:6e671fa75dd2
- Child:
- 38:d472f42506f7
--- a/main.cpp Thu Jun 25 19:58:01 2015 +0000 +++ b/main.cpp Thu Jun 25 22:57:08 2015 +0000 @@ -21,7 +21,7 @@ short dataOut[]={0xFF,30,31,0, 0, 0, 0, 0, 0xFE}; dataComm dc = dataComm(); Timer dbg; - +// /////////////////////////////////////////////////////////////////////////// // periodicFcns runs at the start of every control loop cycle @@ -58,19 +58,21 @@ //pc.printf("%d, %d, %d, %d,", dataIn[0], dataIn[1], dataIn[2], dataIn[3]); // Run state change/analysis in FSM - int exoState=fsm.state(dataIn[1]); + int exoState=fsm.state(dataIn[1]);// //float temp=dbg.read_us(); //pc.printf("%f\r\n", temp); - + // } +// //Starts the Exo controlbed, and processes messages by repeatedly executing periodicFcns int main() { pc.printf("\r\nExoStart \r\n"); wait(1); + initializeExoIOs(); - pc.printf("Test\r\n"); // keep for debugging compile errors + //pc.printf("Test\r\n"); // keep for debugging compile errors mbedLED1 = 1; pc.printf("Starting exo...\n\r"); //If desired, a startup sound can be played. This function is defined in the DatabedCode, because it will command a sound to be played once it detects a heartbeat from ControlBed