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@34:9b66c5188051, 2017-12-20 (annotated)
- Committer:
- tnhnrl
- Date:
- Wed Dec 20 20:24:15 2017 +0000
- Revision:
- 34:9b66c5188051
- Parent:
- 32:f2f8ae34aadc
Problem with log file on mbed
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 | 32:f2f8ae34aadc | 16 | #include "MbedLogger.hpp" |
tnhnrl | 34:9b66c5188051 | 17 | #include "OpenLog.hpp" |
tnhnrl | 17:7c16b5671d0e | 18 | |
mkelly10 | 9:d5fcdcb3c89d | 19 | //Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly |
mkelly10 | 9:d5fcdcb3c89d | 20 | // and avoid "static initialization order fiasco". |
mkelly10 | 9:d5fcdcb3c89d | 21 | |
mkelly10 | 9:d5fcdcb3c89d | 22 | Timer & systemTime(); |
danstrider | 10:085ab7328054 | 23 | Ticker & pulse(); |
danstrider | 10:085ab7328054 | 24 | |
danstrider | 11:3b241ecb75ed | 25 | MODSERIAL & pc(); |
danstrider | 11:3b241ecb75ed | 26 | //MODSERIAL & xb(); |
tnhnrl | 32:f2f8ae34aadc | 27 | MODSERIAL & datalogger(); |
mkelly10 | 9:d5fcdcb3c89d | 28 | |
danstrider | 10:085ab7328054 | 29 | LocalFileSystem & local(); |
danstrider | 10:085ab7328054 | 30 | |
mkelly10 | 9:d5fcdcb3c89d | 31 | SpiADC & adc(); |
mkelly10 | 9:d5fcdcb3c89d | 32 | LinearActuator & bce(); |
mkelly10 | 9:d5fcdcb3c89d | 33 | LinearActuator & batt(); |
mkelly10 | 9:d5fcdcb3c89d | 34 | |
danstrider | 10:085ab7328054 | 35 | omegaPX209 & depth(); |
danstrider | 10:085ab7328054 | 36 | OuterLoop & depthLoop(); |
danstrider | 10:085ab7328054 | 37 | |
danstrider | 10:085ab7328054 | 38 | IMU & imu(); |
danstrider | 10:085ab7328054 | 39 | OuterLoop & pitchLoop(); |
mkelly10 | 9:d5fcdcb3c89d | 40 | |
tnhnrl | 16:3363b9f14913 | 41 | StateMachine & stateMachine(); |
tnhnrl | 16:3363b9f14913 | 42 | |
tnhnrl | 32:f2f8ae34aadc | 43 | MbedLogger & mbedLogger(); |
tnhnrl | 32:f2f8ae34aadc | 44 | |
tnhnrl | 34:9b66c5188051 | 45 | OpenLog & openLog(); |
tnhnrl | 34:9b66c5188051 | 46 | |
tnhnrl | 17:7c16b5671d0e | 47 | ConfigFileIO & configFileIO(); |
tnhnrl | 17:7c16b5671d0e | 48 | |
tnhnrl | 17:7c16b5671d0e | 49 | SequenceController & sequenceController(); |
tnhnrl | 17:7c16b5671d0e | 50 | |
danstrider | 10:085ab7328054 | 51 | // leds for debugging, global for use in any function |
danstrider | 10:085ab7328054 | 52 | DigitalOut & led1(); |
danstrider | 10:085ab7328054 | 53 | DigitalOut & led2(); |
danstrider | 10:085ab7328054 | 54 | DigitalOut & led3(); |
danstrider | 10:085ab7328054 | 55 | DigitalOut & led4(); |
mkelly10 | 9:d5fcdcb3c89d | 56 | |
mkelly10 | 9:d5fcdcb3c89d | 57 | #endif |