most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown
Dependencies: mbed MODSERIAL FATFileSystem
System/StaticDefs.hpp@17:7c16b5671d0e, 2017-11-21 (annotated)
- Committer:
- tnhnrl
- Date:
- Tue Nov 21 22:03:26 2017 +0000
- Revision:
- 17:7c16b5671d0e
- Parent:
- 16:3363b9f14913
- Child:
- 32:f2f8ae34aadc
FSG code commit 11/21
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mkelly10 | 9:d5fcdcb3c89d | 1 | #ifndef AUTOPILOTSTATICDEFS_H_ |
mkelly10 | 9:d5fcdcb3c89d | 2 | #define AUTOPILOTSTATICDEFS_H_ |
mkelly10 | 9:d5fcdcb3c89d | 3 | |
mkelly10 | 9:d5fcdcb3c89d | 4 | #include "mbed.h" |
mkelly10 | 9:d5fcdcb3c89d | 5 | #include "MODSERIAL.h" |
mkelly10 | 9:d5fcdcb3c89d | 6 | #include "ltc1298.hpp" |
mkelly10 | 9:d5fcdcb3c89d | 7 | #include "LinearActuator.hpp" |
mkelly10 | 9:d5fcdcb3c89d | 8 | #include "IMU.h" |
danstrider | 10:085ab7328054 | 9 | #include "omegaPX209.hpp" |
danstrider | 10:085ab7328054 | 10 | #include "PosVelFilter.hpp" |
danstrider | 10:085ab7328054 | 11 | #include "OuterLoop.hpp" |
tnhnrl | 16:3363b9f14913 | 12 | #include "StateMachine.hpp" |
mkelly10 | 9:d5fcdcb3c89d | 13 | |
tnhnrl | 17:7c16b5671d0e | 14 | #include "ConfigFileIO.hpp" |
tnhnrl | 17:7c16b5671d0e | 15 | #include "SequenceController.hpp" |
tnhnrl | 17:7c16b5671d0e | 16 | |
mkelly10 | 9:d5fcdcb3c89d | 17 | //Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly |
mkelly10 | 9:d5fcdcb3c89d | 18 | // and avoid "static initialization order fiasco". |
mkelly10 | 9:d5fcdcb3c89d | 19 | |
mkelly10 | 9:d5fcdcb3c89d | 20 | Timer & systemTime(); |
danstrider | 10:085ab7328054 | 21 | Ticker & pulse(); |
danstrider | 10:085ab7328054 | 22 | |
danstrider | 11:3b241ecb75ed | 23 | MODSERIAL & pc(); |
danstrider | 11:3b241ecb75ed | 24 | //MODSERIAL & xb(); |
mkelly10 | 9:d5fcdcb3c89d | 25 | |
danstrider | 10:085ab7328054 | 26 | LocalFileSystem & local(); |
danstrider | 10:085ab7328054 | 27 | |
mkelly10 | 9:d5fcdcb3c89d | 28 | SpiADC & adc(); |
mkelly10 | 9:d5fcdcb3c89d | 29 | LinearActuator & bce(); |
mkelly10 | 9:d5fcdcb3c89d | 30 | LinearActuator & batt(); |
mkelly10 | 9:d5fcdcb3c89d | 31 | |
danstrider | 10:085ab7328054 | 32 | omegaPX209 & depth(); |
danstrider | 10:085ab7328054 | 33 | OuterLoop & depthLoop(); |
danstrider | 10:085ab7328054 | 34 | |
danstrider | 10:085ab7328054 | 35 | IMU & imu(); |
danstrider | 10:085ab7328054 | 36 | OuterLoop & pitchLoop(); |
mkelly10 | 9:d5fcdcb3c89d | 37 | |
tnhnrl | 16:3363b9f14913 | 38 | StateMachine & stateMachine(); |
tnhnrl | 16:3363b9f14913 | 39 | |
tnhnrl | 17:7c16b5671d0e | 40 | ConfigFileIO & configFileIO(); |
tnhnrl | 17:7c16b5671d0e | 41 | |
tnhnrl | 17:7c16b5671d0e | 42 | SequenceController & sequenceController(); |
tnhnrl | 17:7c16b5671d0e | 43 | |
danstrider | 10:085ab7328054 | 44 | // leds for debugging, global for use in any function |
danstrider | 10:085ab7328054 | 45 | DigitalOut & led1(); |
danstrider | 10:085ab7328054 | 46 | DigitalOut & led2(); |
danstrider | 10:085ab7328054 | 47 | DigitalOut & led3(); |
danstrider | 10:085ab7328054 | 48 | DigitalOut & led4(); |
mkelly10 | 9:d5fcdcb3c89d | 49 | |
mkelly10 | 9:d5fcdcb3c89d | 50 | #endif |