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:
- 82:0981b9ada820
- Parent:
- 76:c802e1da4179
--- a/ConfigFileIO/ConfigFileIO.hpp Thu Nov 08 22:30:32 2018 +0000
+++ b/ConfigFileIO/ConfigFileIO.hpp Fri Feb 15 16:00:17 2019 +0000
@@ -1,13 +1,21 @@
#include "mbed.h"
#include "ConfigFile.h"
+#include <string>
#ifndef CONFIGFILEIO_HPP
#define CONFIGFILEIO_HPP
+struct logFileNames {
+ string diagFileName;
+ string logFileName;
+ int logversion;
+ int diagversion;
+};
+
class ConfigFileIO {
public:
ConfigFileIO();
-
+ logFileNames logFilesStruct;
//modified this to save frequency and deadband 7/11/2018
void saveBattData(float batt_p_gain, float batt_i_gain, float batt_d_gain, int batt_zeroOffset, float batt_filter_freq, float batt_deadband); //modified this because zero offsets are integers
@@ -21,6 +29,8 @@
//ConfigFunctions
int load_BCE_config();
+ int load_LogVers_config(int print_diag); // jcw feb 2019
+ void saveLogVersData(int logversion, int diagversion);
int load_BATT_config();
int load_DEPTH_config();
int load_PITCH_config();