Abstraction for the glider class

Dependents:   DropTest

Revision:
7:dc93fe573846
Parent:
6:bb82dd1618c2
Child:
8:7fc2caa10bbb
diff -r bb82dd1618c2 -r dc93fe573846 Glider.cpp
--- a/Glider.cpp	Thu Apr 13 15:38:09 2017 +0000
+++ b/Glider.cpp	Fri Apr 14 23:33:53 2017 +0000
@@ -18,7 +18,7 @@
 }
 
 void Glider::setHeading() {
-    this->heading = this->hmc->getHeadingXYDeg();
+    this->heading = this->hmc->getHeading();
 }
 
 void Glider::setTempPress() {
@@ -89,6 +89,7 @@
         switch (command) {
             case CMD_BUZZER:  //'b' was recieved.  sound the buzzer
                   this->dev->printf("buzzing...\r\n");
+                  this->state = LAND;
                   while(1);
                   break; 
             case CMD_RESET: