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.
Dependents: 7_21_17_FSG 7_26_17_FSG
Fork of System_ by
StaticDefs.hpp@0:45085dd174e7, 2017-04-27 (annotated)
- Committer:
- tzyoung
- Date:
- Thu Apr 27 13:16:07 2017 +0000
- Revision:
- 0:45085dd174e7
- Child:
- 1:e827d45c3948
initial release
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tzyoung | 0:45085dd174e7 | 1 | #ifndef AUTOPILOTSTATICDEFS_H_ |
| tzyoung | 0:45085dd174e7 | 2 | #define AUTOPILOTSTATICDEFS_H_ |
| tzyoung | 0:45085dd174e7 | 3 | |
| tzyoung | 0:45085dd174e7 | 4 | #include "mbed.h" |
| tzyoung | 0:45085dd174e7 | 5 | #include "ltc1298.hpp" |
| tzyoung | 0:45085dd174e7 | 6 | #include "PosVelFilter.hpp" |
| tzyoung | 0:45085dd174e7 | 7 | #include "BCEmotor.hpp" |
| tzyoung | 0:45085dd174e7 | 8 | #include "controller.hpp" |
| tzyoung | 0:45085dd174e7 | 9 | |
| tzyoung | 0:45085dd174e7 | 10 | |
| tzyoung | 0:45085dd174e7 | 11 | //Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly |
| tzyoung | 0:45085dd174e7 | 12 | // and avoid "static initialization order fiasco". |
| tzyoung | 0:45085dd174e7 | 13 | |
| tzyoung | 0:45085dd174e7 | 14 | Timer & systemTime(); |
| tzyoung | 0:45085dd174e7 | 15 | Serial & pc(); |
| tzyoung | 0:45085dd174e7 | 16 | |
| tzyoung | 0:45085dd174e7 | 17 | SpiADC & adc(); |
| tzyoung | 0:45085dd174e7 | 18 | |
| tzyoung | 0:45085dd174e7 | 19 | PosVelFilter & pvf(); |
| tzyoung | 0:45085dd174e7 | 20 | BCEmotor & bce(); |
| tzyoung | 0:45085dd174e7 | 21 | PositionController & posCon(); |
| tzyoung | 0:45085dd174e7 | 22 | |
| tzyoung | 0:45085dd174e7 | 23 | #endif |
