Flying Sea Glider / Mbed 2 deprecated 2019_19feb19_jcw_noSD

Dependencies:   mbed MODSERIAL FATFileSystem

Committer:
tnhnrl
Date:
Tue Nov 21 22:03:26 2017 +0000
Revision:
17:7c16b5671d0e
FSG code commit 11/21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tnhnrl 17:7c16b5671d0e 1 #include "mbed.h"
tnhnrl 17:7c16b5671d0e 2 #include "ConfigFile.h"
tnhnrl 17:7c16b5671d0e 3
tnhnrl 17:7c16b5671d0e 4 #ifndef CONFIGFILEIO_HPP
tnhnrl 17:7c16b5671d0e 5 #define CONFIGFILEIO_HPP
tnhnrl 17:7c16b5671d0e 6
tnhnrl 17:7c16b5671d0e 7 class ConfigFileIO {
tnhnrl 17:7c16b5671d0e 8 public:
tnhnrl 17:7c16b5671d0e 9 ConfigFileIO();
tnhnrl 17:7c16b5671d0e 10
tnhnrl 17:7c16b5671d0e 11 void saveNeutralPositions(float float_nbp_value, float float_nb_battpos_value);
tnhnrl 17:7c16b5671d0e 12 void loadNeutralPositions();
tnhnrl 17:7c16b5671d0e 13
tnhnrl 17:7c16b5671d0e 14 float getBattPos();
tnhnrl 17:7c16b5671d0e 15 float getBCEPos();
tnhnrl 17:7c16b5671d0e 16
tnhnrl 17:7c16b5671d0e 17 //void load();
tnhnrl 17:7c16b5671d0e 18 // void load_neutral_config();
tnhnrl 17:7c16b5671d0e 19 // void load_dive_cycle_config();
tnhnrl 17:7c16b5671d0e 20 // void load_initial_config_position();
tnhnrl 17:7c16b5671d0e 21 // void load_auto_PID_gains_from_config_file();
tnhnrl 17:7c16b5671d0e 22 // void load_manual_position_PID_gains_from_config_file();
tnhnrl 17:7c16b5671d0e 23 // void load_timers_from_config_file();
tnhnrl 17:7c16b5671d0e 24 //
tnhnrl 17:7c16b5671d0e 25 // void write_to_config_neutral_buoyancy_position_mm(float float_nbp_value, float float_nb_battpos_value);
tnhnrl 17:7c16b5671d0e 26 // void write_neutral_dive_depth_in_ft_to_config(float write_neutral_depth_ft);
tnhnrl 17:7c16b5671d0e 27 // void write_dive_cycle_config(float depth_feet, float pitch_deg, float buoyancy, float dive_time);
tnhnrl 17:7c16b5671d0e 28 // void write_manual_position_PID_values_to_config(float battP, float battI, float battD, float beP, float beI, float beD);
tnhnrl 17:7c16b5671d0e 29 // void write_auto_PID_values_to_config(float battP, float battI, float battD, float beP, float beI, float beD);
tnhnrl 17:7c16b5671d0e 30 // void write_timers_to_config_file(float force, float neutral, float dive);
tnhnrl 17:7c16b5671d0e 31 // void read_config_file();
tnhnrl 17:7c16b5671d0e 32
tnhnrl 17:7c16b5671d0e 33 private:
tnhnrl 17:7c16b5671d0e 34 float _neutral_batt_pos_mm;
tnhnrl 17:7c16b5671d0e 35 float _neutral_bce_pos_mm;
tnhnrl 17:7c16b5671d0e 36 };
tnhnrl 17:7c16b5671d0e 37 #endif