FSG / System_

Fork of System_7_14 by Troy Holley

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers StaticDefs.hpp Source File

StaticDefs.hpp

00001 #ifndef AUTOPILOTSTATICDEFS_H_
00002 #define AUTOPILOTSTATICDEFS_H_
00003 
00004 #include "mbed.h"
00005 #include "ltc1298.hpp"
00006 #include "PosVelFilter.hpp"
00007 #include "PololuHbridge.hpp"
00008 #include "controller.hpp"
00009 
00010 
00011 //Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly
00012 // and avoid "static initialization order fiasco".
00013 
00014 Timer                       &   systemTime();
00015 Serial                      &   pc();
00016 
00017 SpiADC                      &   adc();
00018 
00019 PosVelFilter                &   pvf();
00020 PololuHBridge               &   hBridge();
00021 PositionController          &   posCon();
00022 
00023 #endif