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@11:3b241ecb75ed, 2017-10-27 (annotated)
- Committer:
- danstrider
- Date:
- Fri Oct 27 00:37:32 2017 +0000
- Revision:
- 11:3b241ecb75ed
- Parent:
- 10:085ab7328054
- Child:
- 16:3363b9f14913
This version has been in the pool, working with all the hardware. Had occasional string pot problems and got stuck in RISE, letting the battery stall out against the endcap.
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" |
mkelly10 | 9:d5fcdcb3c89d | 12 | |
mkelly10 | 9:d5fcdcb3c89d | 13 | //Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly |
mkelly10 | 9:d5fcdcb3c89d | 14 | // and avoid "static initialization order fiasco". |
mkelly10 | 9:d5fcdcb3c89d | 15 | |
mkelly10 | 9:d5fcdcb3c89d | 16 | Timer & systemTime(); |
danstrider | 10:085ab7328054 | 17 | Ticker & pulse(); |
danstrider | 10:085ab7328054 | 18 | |
danstrider | 11:3b241ecb75ed | 19 | MODSERIAL & pc(); |
danstrider | 11:3b241ecb75ed | 20 | //MODSERIAL & xb(); |
mkelly10 | 9:d5fcdcb3c89d | 21 | |
danstrider | 10:085ab7328054 | 22 | LocalFileSystem & local(); |
danstrider | 10:085ab7328054 | 23 | |
mkelly10 | 9:d5fcdcb3c89d | 24 | SpiADC & adc(); |
mkelly10 | 9:d5fcdcb3c89d | 25 | LinearActuator & bce(); |
mkelly10 | 9:d5fcdcb3c89d | 26 | LinearActuator & batt(); |
mkelly10 | 9:d5fcdcb3c89d | 27 | |
danstrider | 10:085ab7328054 | 28 | omegaPX209 & depth(); |
danstrider | 10:085ab7328054 | 29 | OuterLoop & depthLoop(); |
danstrider | 10:085ab7328054 | 30 | |
danstrider | 10:085ab7328054 | 31 | IMU & imu(); |
danstrider | 10:085ab7328054 | 32 | OuterLoop & pitchLoop(); |
mkelly10 | 9:d5fcdcb3c89d | 33 | |
danstrider | 10:085ab7328054 | 34 | // leds for debugging, global for use in any function |
danstrider | 10:085ab7328054 | 35 | DigitalOut & led1(); |
danstrider | 10:085ab7328054 | 36 | DigitalOut & led2(); |
danstrider | 10:085ab7328054 | 37 | DigitalOut & led3(); |
danstrider | 10:085ab7328054 | 38 | DigitalOut & led4(); |
mkelly10 | 9:d5fcdcb3c89d | 39 | |
mkelly10 | 9:d5fcdcb3c89d | 40 | #endif |