Abstraction for the glider class
Diff: Glider.cpp
- Revision:
- 12:ca3e1c6203f7
- Parent:
- 11:5e83ff964f5f
- Child:
- 13:d95070aa9140
--- a/Glider.cpp Tue Apr 25 17:18:44 2017 +0000 +++ b/Glider.cpp Sat Apr 29 18:49:55 2017 +0000 @@ -12,6 +12,7 @@ cmdFlag = false; transmitFlag = false; hmc = new HMC5883L(sda, scl); + hmc->init(); bmp = new BMP180(sda, scl); bmp->Initialize(64, BMP180_OSS_ULTRA_LOW_POWER); xbeeRxInt.rise(this, &Glider::setCommandFlag); @@ -37,6 +38,13 @@ this->missionTime = time(NULL) - this->startTime; //duration = current tome - start time } +void Glider::updateTelem() { + setHeading(); + setTempPressAlt(); + setAirSpeed(); + setMissionTime(); +} + void Glider::setTransmitFlag() { this->transmitFlag = true; }