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@10:085ab7328054, 2017-10-23 (annotated)
- Committer:
- danstrider
- Date:
- Mon Oct 23 12:50:53 2017 +0000
- Revision:
- 10:085ab7328054
- Parent:
- 9:d5fcdcb3c89d
- Child:
- 11:3b241ecb75ed
checked out on the hardware
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 | |
mkelly10 | 9:d5fcdcb3c89d | 19 | Serial & pc(); |
mkelly10 | 9:d5fcdcb3c89d | 20 | |
danstrider | 10:085ab7328054 | 21 | LocalFileSystem & local(); |
danstrider | 10:085ab7328054 | 22 | |
mkelly10 | 9:d5fcdcb3c89d | 23 | SpiADC & adc(); |
mkelly10 | 9:d5fcdcb3c89d | 24 | LinearActuator & bce(); |
mkelly10 | 9:d5fcdcb3c89d | 25 | LinearActuator & batt(); |
mkelly10 | 9:d5fcdcb3c89d | 26 | |
danstrider | 10:085ab7328054 | 27 | omegaPX209 & depth(); |
danstrider | 10:085ab7328054 | 28 | OuterLoop & depthLoop(); |
danstrider | 10:085ab7328054 | 29 | |
danstrider | 10:085ab7328054 | 30 | IMU & imu(); |
danstrider | 10:085ab7328054 | 31 | OuterLoop & pitchLoop(); |
mkelly10 | 9:d5fcdcb3c89d | 32 | |
danstrider | 10:085ab7328054 | 33 | // leds for debugging, global for use in any function |
danstrider | 10:085ab7328054 | 34 | DigitalOut & led1(); |
danstrider | 10:085ab7328054 | 35 | DigitalOut & led2(); |
danstrider | 10:085ab7328054 | 36 | DigitalOut & led3(); |
danstrider | 10:085ab7328054 | 37 | DigitalOut & led4(); |
mkelly10 | 9:d5fcdcb3c89d | 38 | |
mkelly10 | 9:d5fcdcb3c89d | 39 | #endif |