New version of quadcopter software written to OO principles
Dependencies: mbed MODSERIAL filter mbed-rtos ConfigFile PID PPM FreeIMU_external_magnetometer TinyGPS
Status/StatusLights/StatusLights.h@4:9ffbf9101992, 2015-05-08 (annotated)
- Committer:
- joe4465
- Date:
- Fri May 08 09:07:38 2015 +0000
- Revision:
- 4:9ffbf9101992
- Parent:
- 2:969dfa4f2436
End of FYP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joe4465 | 2:969dfa4f2436 | 1 | #include "mbed.h" |
joe4465 | 2:969dfa4f2436 | 2 | #include "Global.h" |
joe4465 | 2:969dfa4f2436 | 3 | #include "rtos.h" |
joe4465 | 2:969dfa4f2436 | 4 | #include "Gps.h" |
joe4465 | 2:969dfa4f2436 | 5 | #include "Imu.h" |
joe4465 | 2:969dfa4f2436 | 6 | |
joe4465 | 2:969dfa4f2436 | 7 | #ifndef StatusLights_H |
joe4465 | 2:969dfa4f2436 | 8 | #define StatusLights_H |
joe4465 | 2:969dfa4f2436 | 9 | |
joe4465 | 2:969dfa4f2436 | 10 | class StatusLights |
joe4465 | 2:969dfa4f2436 | 11 | { |
joe4465 | 2:969dfa4f2436 | 12 | public: |
joe4465 | 2:969dfa4f2436 | 13 | StatusLights(); |
joe4465 | 2:969dfa4f2436 | 14 | ~StatusLights(); |
joe4465 | 2:969dfa4f2436 | 15 | |
joe4465 | 2:969dfa4f2436 | 16 | void clear(); |
joe4465 | 2:969dfa4f2436 | 17 | void preFlight(); |
joe4465 | 2:969dfa4f2436 | 18 | void standby(); |
joe4465 | 2:969dfa4f2436 | 19 | void groundReady(); |
joe4465 | 2:969dfa4f2436 | 20 | void flying(); |
joe4465 | 2:969dfa4f2436 | 21 | void error(); |
joe4465 | 2:969dfa4f2436 | 22 | |
joe4465 | 2:969dfa4f2436 | 23 | private: |
joe4465 | 2:969dfa4f2436 | 24 | int _ledState; |
joe4465 | 2:969dfa4f2436 | 25 | DigitalOut* _led1; |
joe4465 | 2:969dfa4f2436 | 26 | DigitalOut* _led2; |
joe4465 | 2:969dfa4f2436 | 27 | DigitalOut* _led3; |
joe4465 | 2:969dfa4f2436 | 28 | DigitalOut* _led4; |
joe4465 | 2:969dfa4f2436 | 29 | }; |
joe4465 | 2:969dfa4f2436 | 30 | |
joe4465 | 2:969dfa4f2436 | 31 | #endif |