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
ConfigFileWrapper/ConfigFileWrapper.h
- Committer:
- joe4465
- Date:
- 2015-03-04
- Revision:
- 0:c6a85bb2a827
File content as of revision 0:c6a85bb2a827:
#include "mbed.h"
#include "Global.h"
#include "ConfigFile.h"
#include "PidWrapper.h"
#ifndef ConfigFileWrapper_H
#define ConfigFileWrapper_H
class ConfigFileWrapper // begin declaration of the class
{
public: // begin public section
ConfigFileWrapper(); // constructor
~ConfigFileWrapper();
bool initialise();
pidWrapper::PidParameters getYawRateParameters();
pidWrapper::PidParameters getPitchRateParameters();
pidWrapper::PidParameters getRollRateParameters();
pidWrapper::PidParameters getYawStabParameters();
pidWrapper::PidParameters getPitchStabParameters();
pidWrapper::PidParameters getRollStabParameters();
bool setYawRateParameters(pidWrapper::PidParameters);
bool setPitchRateParameters(pidWrapper::PidParameters);
bool setRollRateParameters(pidWrapper::PidParameters);
bool setYawStabParameters(pidWrapper::PidParameters);
bool setPitchStabParameters(pidWrapper::PidParameters);
bool setRollStabParameters(pidWrapper::PidParameters);
private:
ConfigFile _configFile;
char* _str
pidWrapper::PidParameters _yawRateParameters;
pidWrapper::PidParameters _pitchRateParameters;
pidWrapper::PidParameters _rollRateParameters;
pidWrapper::PidParameters _yawStabParameters;
pidWrapper::PidParameters _pitchStabParameters;
pidWrapper::PidParameters _rollStabParameters;
void convertToCharArray(float number);
void convertToCharArray(int number);
void loadSettings();
};
#endif