Abstraction for the glider class
Diff: Glider.cpp
- Revision:
- 8:7fc2caa10bbb
- Parent:
- 7:dc93fe573846
- Child:
- 9:8e34e713e6ef
--- a/Glider.cpp Fri Apr 14 23:33:53 2017 +0000 +++ b/Glider.cpp Sat Apr 15 00:18:17 2017 +0000 @@ -21,7 +21,7 @@ this->heading = this->hmc->getHeading(); } -void Glider::setTempPress() { +void Glider::setTempPressAlt() { bmp->ReadData(&this->temp, &this->pressure, &this->alt); } @@ -75,7 +75,14 @@ //temp, voltage this->packetCount++; - this->xbee->printf("3387, GLIDER, %f, %d, %d, %d\r\n", this->heading, this->missionTime, this->packetCount, this->state); + this->xbee->printf("3387, GLIDER, %d, %d, %f, %f, %f, %f, %d\r\n", + this->missionTime, + this->packetCount, + this->alt, + this->pressure, + this->temp, + this->heading, + this->state); } void Glider::setCommandFlag() {