New version of quadcopter software written to OO principles
Dependencies: mbed MODSERIAL filter mbed-rtos ConfigFile PID PPM FreeIMU_external_magnetometer TinyGPS
Diff: Status/StatusLights/StatusLights.h
- Revision:
- 2:969dfa4f2436
- Parent:
- 0:c6a85bb2a827
--- a/Status/StatusLights/StatusLights.h Wed Mar 04 18:53:43 2015 +0000 +++ b/Status/StatusLights/StatusLights.h Wed Apr 01 11:19:21 2015 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" +#include "Global.h" +#include "rtos.h" +#include "Gps.h" +#include "Imu.h" + +#ifndef StatusLights_H +#define StatusLights_H + +class StatusLights +{ + public: + StatusLights(); + ~StatusLights(); + + void clear(); + void preFlight(); + void standby(); + void groundReady(); + void flying(); + void error(); + + private: + int _ledState; + DigitalOut* _led1; + DigitalOut* _led2; + DigitalOut* _led3; + DigitalOut* _led4; +}; + +#endif \ No newline at end of file