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
Diff: ConfigFileIO/ConfigFileIO.hpp
- Revision:
- 57:ec69651c8c21
- Child:
- 73:f6f378311c8d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ConfigFileIO/ConfigFileIO.hpp Thu Jun 14 16:10:25 2018 +0000
@@ -0,0 +1,35 @@
+#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);
+
+ void saveRudderData(float setMinDeg, float setMaxDeg, float setCenterPWM, float setMinPWM, float setMaxPWM);
+ void saveHeadingData(float heading_p_gain, float heading_i_gain, float heading_d_gain, float heading_offset);
+
+//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_HEADING_config(); //heading outer loop of rudder servo
+ int load_RUDDER_config(); //rudder servo
+ int load_script();
+
+private:
+ float _neutral_batt_pos_mm;
+ float _neutral_bce_pos_mm;
+};
+#endif