Quadcopter software. Flying - Contact me for more details or a copy of the PC ground station code
Dependencies: ConfigFile PID PPM MODSERIAL mbed-rtos mbed MaxbotixDriver TinyGPS filter
altitudeMonitor.h
- Committer:
- joe4465
- Date:
- 2015-02-22
- Revision:
- 9:7b194f83e567
File content as of revision 9:7b194f83e567:
#include "mbed.h" #include "rtos.h" #include "hardware.h" // The altitude monitor thread gets the latest altitude from each sensor and combines into one altitude void AltitudeMonitorThread(void const *args) { printf("Altitude monitor thread started\r\n"); while (true) { _maxBotixPingAltitude = _maxBotixSensor.read() / 100; // Convert to meters _barometerAltitude = 0;//_freeIMU.getBaroAlt(); Thread::wait(100); } }