Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MODSERIAL filter mbed-rtos ConfigFile PID PPM FreeIMU_external_magnetometer TinyGPS
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
Generated on Fri Jul 15 2022 00:21:58 by
1.7.2