Joseph Roberts / Mbed 2 deprecated Quadcopter_mk2

Dependencies:   mbed MODSERIAL filter mbed-rtos ConfigFile PID PPM FreeIMU_external_magnetometer TinyGPS

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BaseStation.h Source File

BaseStation.h

00001 #include "mbed.h"
00002 #include "Global.h"
00003 #include "rtos.h"
00004 #include "MODSERIAL.h"
00005 #include "Rc.h"
00006 #include "Sensors.h"
00007 #include "Status.h"
00008 #include "NavigationController.h"
00009 #include "FlightController.h"
00010 
00011 #ifndef BaseStation_H
00012 #define BaseStation_H
00013 
00014 class BaseStation                
00015 {
00016   public:             
00017     BaseStation(Status& status, Rc& rc, Sensors& sensors, NavigationController& navigationController, FlightController& flightController, ConfigFileWrapper& configFileWrapper, PinName wirelessPinTx, PinName wirelessPinRx);   
00018     ~BaseStation();   
00019     
00020   private:
00021     static void threadStarter(void const *p);
00022     void threadWorker();
00023     void checkCommand();
00024     
00025     Thread* _thread;
00026     MODSERIAL* _wireless;
00027     Status& _status;
00028     Rc& _rc;
00029     Sensors& _sensors;
00030     NavigationController& _navigationController;
00031     FlightController& _flightController;
00032     ConfigFileWrapper& _configFileWrapper;
00033     char _wirelessSerialBuffer[255];
00034     int _wirelessSerialRxPos;
00035 };
00036 
00037 #endif