for Infotag
Dependencies: Library_Cntrl Library_Misc
Diff: main.cpp
- Revision:
- 1:f39d75a48955
- Parent:
- 0:a56e9c932891
- Child:
- 2:b3aed371adb5
diff -r a56e9c932891 -r f39d75a48955 main.cpp --- a/main.cpp Thu Mar 07 06:52:26 2019 +0000 +++ b/main.cpp Thu Mar 07 07:04:11 2019 +0000 @@ -120,7 +120,7 @@ float dt = ti.read(); // time elapsed in current state calc_angle_phi1(0); // angle phi1 is calculated in every loop // ****************** STATE MACHINE *************************************** - switch(CS) { + switch(CS) { case INIT: // at very beginning if (dt > 2.0f){ CS = FLAT; // switch to FLAT state