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@16:3363b9f14913, 2017-11-06 (annotated)
- Committer:
- tnhnrl
- Date:
- Mon Nov 06 22:57:56 2017 +0000
- Revision:
- 16:3363b9f14913
- Parent:
- 11:3b241ecb75ed
- Child:
- 17:7c16b5671d0e
Update to FSG test program used in the LASR pool
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 | |
mkelly10 | 9:d5fcdcb3c89d | 14 | //Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly |
mkelly10 | 9:d5fcdcb3c89d | 15 | // and avoid "static initialization order fiasco". |
mkelly10 | 9:d5fcdcb3c89d | 16 | |
mkelly10 | 9:d5fcdcb3c89d | 17 | Timer & systemTime(); |
danstrider | 10:085ab7328054 | 18 | Ticker & pulse(); |
danstrider | 10:085ab7328054 | 19 | |
danstrider | 11:3b241ecb75ed | 20 | MODSERIAL & pc(); |
danstrider | 11:3b241ecb75ed | 21 | //MODSERIAL & xb(); |
mkelly10 | 9:d5fcdcb3c89d | 22 | |
danstrider | 10:085ab7328054 | 23 | LocalFileSystem & local(); |
danstrider | 10:085ab7328054 | 24 | |
mkelly10 | 9:d5fcdcb3c89d | 25 | SpiADC & adc(); |
mkelly10 | 9:d5fcdcb3c89d | 26 | LinearActuator & bce(); |
mkelly10 | 9:d5fcdcb3c89d | 27 | LinearActuator & batt(); |
mkelly10 | 9:d5fcdcb3c89d | 28 | |
danstrider | 10:085ab7328054 | 29 | omegaPX209 & depth(); |
danstrider | 10:085ab7328054 | 30 | OuterLoop & depthLoop(); |
danstrider | 10:085ab7328054 | 31 | |
danstrider | 10:085ab7328054 | 32 | IMU & imu(); |
danstrider | 10:085ab7328054 | 33 | OuterLoop & pitchLoop(); |
mkelly10 | 9:d5fcdcb3c89d | 34 | |
tnhnrl | 16:3363b9f14913 | 35 | StateMachine & stateMachine(); |
tnhnrl | 16:3363b9f14913 | 36 | |
danstrider | 10:085ab7328054 | 37 | // leds for debugging, global for use in any function |
danstrider | 10:085ab7328054 | 38 | DigitalOut & led1(); |
danstrider | 10:085ab7328054 | 39 | DigitalOut & led2(); |
danstrider | 10:085ab7328054 | 40 | DigitalOut & led3(); |
danstrider | 10:085ab7328054 | 41 | DigitalOut & led4(); |
mkelly10 | 9:d5fcdcb3c89d | 42 | |
mkelly10 | 9:d5fcdcb3c89d | 43 | #endif |