Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MODSERIAL FATFileSystem
System/StaticDefs.hpp@32:f2f8ae34aadc, 2017-12-20 (annotated)
- Committer:
- tnhnrl
- Date:
- Wed Dec 20 13:52:50 2017 +0000
- Revision:
- 32:f2f8ae34aadc
- Parent:
- 17:7c16b5671d0e
- Child:
- 34:9b66c5188051
revA
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 | 17:7c16b5671d0e | 17 | |
| mkelly10 | 9:d5fcdcb3c89d | 18 | //Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly |
| mkelly10 | 9:d5fcdcb3c89d | 19 | // and avoid "static initialization order fiasco". |
| mkelly10 | 9:d5fcdcb3c89d | 20 | |
| mkelly10 | 9:d5fcdcb3c89d | 21 | Timer & systemTime(); |
| danstrider | 10:085ab7328054 | 22 | Ticker & pulse(); |
| danstrider | 10:085ab7328054 | 23 | |
| danstrider | 11:3b241ecb75ed | 24 | MODSERIAL & pc(); |
| danstrider | 11:3b241ecb75ed | 25 | //MODSERIAL & xb(); |
| tnhnrl | 32:f2f8ae34aadc | 26 | MODSERIAL & datalogger(); |
| mkelly10 | 9:d5fcdcb3c89d | 27 | |
| danstrider | 10:085ab7328054 | 28 | LocalFileSystem & local(); |
| danstrider | 10:085ab7328054 | 29 | |
| mkelly10 | 9:d5fcdcb3c89d | 30 | SpiADC & adc(); |
| mkelly10 | 9:d5fcdcb3c89d | 31 | LinearActuator & bce(); |
| mkelly10 | 9:d5fcdcb3c89d | 32 | LinearActuator & batt(); |
| mkelly10 | 9:d5fcdcb3c89d | 33 | |
| danstrider | 10:085ab7328054 | 34 | omegaPX209 & depth(); |
| danstrider | 10:085ab7328054 | 35 | OuterLoop & depthLoop(); |
| danstrider | 10:085ab7328054 | 36 | |
| danstrider | 10:085ab7328054 | 37 | IMU & imu(); |
| danstrider | 10:085ab7328054 | 38 | OuterLoop & pitchLoop(); |
| mkelly10 | 9:d5fcdcb3c89d | 39 | |
| tnhnrl | 16:3363b9f14913 | 40 | StateMachine & stateMachine(); |
| tnhnrl | 16:3363b9f14913 | 41 | |
| tnhnrl | 32:f2f8ae34aadc | 42 | MbedLogger & mbedLogger(); |
| tnhnrl | 32:f2f8ae34aadc | 43 | |
| tnhnrl | 17:7c16b5671d0e | 44 | ConfigFileIO & configFileIO(); |
| tnhnrl | 17:7c16b5671d0e | 45 | |
| tnhnrl | 17:7c16b5671d0e | 46 | SequenceController & sequenceController(); |
| tnhnrl | 17:7c16b5671d0e | 47 | |
| danstrider | 10:085ab7328054 | 48 | // leds for debugging, global for use in any function |
| danstrider | 10:085ab7328054 | 49 | DigitalOut & led1(); |
| danstrider | 10:085ab7328054 | 50 | DigitalOut & led2(); |
| danstrider | 10:085ab7328054 | 51 | DigitalOut & led3(); |
| danstrider | 10:085ab7328054 | 52 | DigitalOut & led4(); |
| mkelly10 | 9:d5fcdcb3c89d | 53 | |
| mkelly10 | 9:d5fcdcb3c89d | 54 | #endif |