FSG / System

Dependents:   7_21_17_FSG 7_26_17_FSG

Fork of System_ by FSG

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?

UserRevisionLine numberNew 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