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
Config_File_IO/ConfigFileIO.hpp
- Committer:
- tnhnrl
- Date:
- 2017-11-21
- Revision:
- 17:7c16b5671d0e
File content as of revision 17:7c16b5671d0e:
#include "mbed.h"
#include "ConfigFile.h"
#ifndef CONFIGFILEIO_HPP
#define CONFIGFILEIO_HPP
class ConfigFileIO {
public:
    ConfigFileIO();
    
    void saveNeutralPositions(float float_nbp_value, float float_nb_battpos_value);
    void loadNeutralPositions();
    
    float getBattPos();
    float getBCEPos();
    
    //void load();
//    void load_neutral_config();
//    void load_dive_cycle_config();
//    void load_initial_config_position();
//    void load_auto_PID_gains_from_config_file();
//    void load_manual_position_PID_gains_from_config_file();
//    void load_timers_from_config_file();
//
//    void write_to_config_neutral_buoyancy_position_mm(float float_nbp_value, float float_nb_battpos_value);
//    void write_neutral_dive_depth_in_ft_to_config(float write_neutral_depth_ft);
//    void write_dive_cycle_config(float depth_feet, float pitch_deg, float buoyancy, float dive_time);
//    void write_manual_position_PID_values_to_config(float battP, float battI, float battD, float beP, float beI, float beD);
//    void write_auto_PID_values_to_config(float battP, float battI, float battD, float beP, float beI, float beD);
//    void write_timers_to_config_file(float force, float neutral, float dive);
//    void read_config_file();
private: 
    float _neutral_batt_pos_mm;
    float _neutral_bce_pos_mm;
};
#endif