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 FATFileSystem
ConfigFileIO/ConfigFileIO.hpp
- Committer:
- tnhnrl
- Date:
- 2018-06-06
- Revision:
- 52:f207567d3ea4
- Parent:
- 43:891baf306e0a
File content as of revision 52:f207567d3ea4:
#include "mbed.h"
#include "ConfigFile.h"
#ifndef CONFIGFILEIO_HPP
#define CONFIGFILEIO_HPP
class ConfigFileIO {
public:
ConfigFileIO();
void saveBattData(float p_gain, float i_gain, float d_gain);
void savePitchData(float p_gain, float i_gain, float d_gain, int batt_zeroOffset);
void saveBCEData(float p_gain, float i_gain, float d_gain);
void saveDepthData(float p_gain, float i_gain, float d_gain, int bce_zeroOffset);
// 06 / 06 / 2018
void saveRudderData(float setMinDeg, float setMaxDeg, float setCenterPWM, float setMinPWM, float setMaxPWM);
//write functions to save rudder config later
//ConfigFunctions
int load_BCE_config();
int load_BATT_config();
int load_DEPTH_config();
int load_PITCH_config();
int load_RUDDER_config();
int load_SERVO_config();
int load_script();
private:
float _neutral_batt_pos_mm;
float _neutral_bce_pos_mm;
};
#endif