most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown

Dependencies:   mbed MODSERIAL FATFileSystem

System/StaticDefs.hpp

Committer:
mkelly10
Date:
2017-10-20
Revision:
9:d5fcdcb3c89d
Child:
10:085ab7328054

File content as of revision 9:d5fcdcb3c89d:

#ifndef AUTOPILOTSTATICDEFS_H_
#define AUTOPILOTSTATICDEFS_H_

#include "mbed.h"
#include "MODSERIAL.h"
#include "ltc1298.hpp"
#include "LinearActuator.hpp"
#include "IMU.h"


//Declare static global variables using 'construct on use' idiom to ensure they are always constructed correctly
// and avoid "static initialization order fiasco".

Timer                       &   systemTime();
Serial                      &   pc();

SpiADC                      &   adc();
LinearActuator              &   bce();
LinearActuator              &   batt();

LocalFileSystem             &   local();

PIDController               &   DepthController();

IMU                         &   Microstrain();

#endif