New version of quadcopter software written to OO principles

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

Committer:
joe4465
Date:
Fri May 08 09:07:38 2015 +0000
Revision:
4:9ffbf9101992
Parent:
2:969dfa4f2436
End of FYP

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joe4465 2:969dfa4f2436 1 #include "mbed.h"
joe4465 2:969dfa4f2436 2 #include "Global.h"
joe4465 2:969dfa4f2436 3 #include "rtos.h"
joe4465 2:969dfa4f2436 4 #include "MODSERIAL.h"
joe4465 2:969dfa4f2436 5 #include "Rc.h"
joe4465 2:969dfa4f2436 6 #include "Sensors.h"
joe4465 2:969dfa4f2436 7 #include "Status.h"
joe4465 2:969dfa4f2436 8 #include "NavigationController.h"
joe4465 2:969dfa4f2436 9 #include "FlightController.h"
joe4465 2:969dfa4f2436 10
joe4465 2:969dfa4f2436 11 #ifndef BaseStation_H
joe4465 2:969dfa4f2436 12 #define BaseStation_H
joe4465 2:969dfa4f2436 13
joe4465 2:969dfa4f2436 14 class BaseStation
joe4465 2:969dfa4f2436 15 {
joe4465 2:969dfa4f2436 16 public:
joe4465 2:969dfa4f2436 17 BaseStation(Status& status, Rc& rc, Sensors& sensors, NavigationController& navigationController, FlightController& flightController, ConfigFileWrapper& configFileWrapper, PinName wirelessPinTx, PinName wirelessPinRx);
joe4465 2:969dfa4f2436 18 ~BaseStation();
joe4465 2:969dfa4f2436 19
joe4465 2:969dfa4f2436 20 private:
joe4465 2:969dfa4f2436 21 static void threadStarter(void const *p);
joe4465 2:969dfa4f2436 22 void threadWorker();
joe4465 2:969dfa4f2436 23 void checkCommand();
joe4465 2:969dfa4f2436 24
joe4465 2:969dfa4f2436 25 Thread* _thread;
joe4465 2:969dfa4f2436 26 MODSERIAL* _wireless;
joe4465 2:969dfa4f2436 27 Status& _status;
joe4465 2:969dfa4f2436 28 Rc& _rc;
joe4465 2:969dfa4f2436 29 Sensors& _sensors;
joe4465 2:969dfa4f2436 30 NavigationController& _navigationController;
joe4465 2:969dfa4f2436 31 FlightController& _flightController;
joe4465 2:969dfa4f2436 32 ConfigFileWrapper& _configFileWrapper;
joe4465 2:969dfa4f2436 33 char _wirelessSerialBuffer[255];
joe4465 2:969dfa4f2436 34 int _wirelessSerialRxPos;
joe4465 2:969dfa4f2436 35 };
joe4465 2:969dfa4f2436 36
joe4465 2:969dfa4f2436 37 #endif