Joseph Roberts / Mbed 2 deprecated Quadcopter_mk2

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

Committer:
joe4465
Date:
Wed Mar 04 18:50:37 2015 +0000
Revision:
0:c6a85bb2a827
New version of quadcopter software, written following OO principles

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joe4465 0:c6a85bb2a827 1 #include "mbed.h"
joe4465 0:c6a85bb2a827 2 #include "Global.h"
joe4465 0:c6a85bb2a827 3 #include "ConfigFile.h"
joe4465 0:c6a85bb2a827 4 #include "PidWrapper.h"
joe4465 0:c6a85bb2a827 5
joe4465 0:c6a85bb2a827 6 #ifndef ConfigFileWrapper_H
joe4465 0:c6a85bb2a827 7 #define ConfigFileWrapper_H
joe4465 0:c6a85bb2a827 8
joe4465 0:c6a85bb2a827 9 class ConfigFileWrapper // begin declaration of the class
joe4465 0:c6a85bb2a827 10 {
joe4465 0:c6a85bb2a827 11 public: // begin public section
joe4465 0:c6a85bb2a827 12 ConfigFileWrapper(); // constructor
joe4465 0:c6a85bb2a827 13 ~ConfigFileWrapper();
joe4465 0:c6a85bb2a827 14
joe4465 0:c6a85bb2a827 15 bool initialise();
joe4465 0:c6a85bb2a827 16 pidWrapper::PidParameters getYawRateParameters();
joe4465 0:c6a85bb2a827 17 pidWrapper::PidParameters getPitchRateParameters();
joe4465 0:c6a85bb2a827 18 pidWrapper::PidParameters getRollRateParameters();
joe4465 0:c6a85bb2a827 19 pidWrapper::PidParameters getYawStabParameters();
joe4465 0:c6a85bb2a827 20 pidWrapper::PidParameters getPitchStabParameters();
joe4465 0:c6a85bb2a827 21 pidWrapper::PidParameters getRollStabParameters();
joe4465 0:c6a85bb2a827 22
joe4465 0:c6a85bb2a827 23 bool setYawRateParameters(pidWrapper::PidParameters);
joe4465 0:c6a85bb2a827 24 bool setPitchRateParameters(pidWrapper::PidParameters);
joe4465 0:c6a85bb2a827 25 bool setRollRateParameters(pidWrapper::PidParameters);
joe4465 0:c6a85bb2a827 26 bool setYawStabParameters(pidWrapper::PidParameters);
joe4465 0:c6a85bb2a827 27 bool setPitchStabParameters(pidWrapper::PidParameters);
joe4465 0:c6a85bb2a827 28 bool setRollStabParameters(pidWrapper::PidParameters);
joe4465 0:c6a85bb2a827 29
joe4465 0:c6a85bb2a827 30 private:
joe4465 0:c6a85bb2a827 31 ConfigFile _configFile;
joe4465 0:c6a85bb2a827 32 char* _str
joe4465 0:c6a85bb2a827 33 pidWrapper::PidParameters _yawRateParameters;
joe4465 0:c6a85bb2a827 34 pidWrapper::PidParameters _pitchRateParameters;
joe4465 0:c6a85bb2a827 35 pidWrapper::PidParameters _rollRateParameters;
joe4465 0:c6a85bb2a827 36 pidWrapper::PidParameters _yawStabParameters;
joe4465 0:c6a85bb2a827 37 pidWrapper::PidParameters _pitchStabParameters;
joe4465 0:c6a85bb2a827 38 pidWrapper::PidParameters _rollStabParameters;
joe4465 0:c6a85bb2a827 39 void convertToCharArray(float number);
joe4465 0:c6a85bb2a827 40 void convertToCharArray(int number);
joe4465 0:c6a85bb2a827 41 void loadSettings();
joe4465 0:c6a85bb2a827 42 };
joe4465 0:c6a85bb2a827 43
joe4465 0:c6a85bb2a827 44 #endif