Abstraction for the glider class

Dependents:   DropTest

Revision:
19:9bdc2b081b16
Parent:
18:a4fbe3ce0f16
Child:
20:d8044cd4819f
--- a/Glider.cpp	Tue May 16 16:51:23 2017 +0000
+++ b/Glider.cpp	Tue May 16 17:06:32 2017 +0000
@@ -133,9 +133,15 @@
                   saveData();
                   */
                   
-                  remove("/telem/data.txt");
+                  //remove("/telem/data.txt");
                   
                   break;
+                  
+            case CMD_NEXT_STATE:
+                  if (state < 1 && state >= 0) {
+                      xbee->printf("Going to next state...\r\n");
+                      state++;
+                  }
         }
         
         this->cmdFlag = false;  //reset the flag so a new command can be recieved