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@76:c802e1da4179, 2018-08-16 (annotated)
- Committer:
- tnhnrl
- Date:
- Thu Aug 16 21:47:40 2018 +0000
- Revision:
- 76:c802e1da4179
- Parent:
- 73:f6f378311c8d
- Child:
- 82:0981b9ada820
Stable version of code with PID zero offset save fixed!
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tnhnrl | 57:ec69651c8c21 | 1 | #include "mbed.h" |
| tnhnrl | 57:ec69651c8c21 | 2 | #include "ConfigFile.h" |
| tnhnrl | 57:ec69651c8c21 | 3 | |
| tnhnrl | 57:ec69651c8c21 | 4 | #ifndef CONFIGFILEIO_HPP |
| tnhnrl | 57:ec69651c8c21 | 5 | #define CONFIGFILEIO_HPP |
| tnhnrl | 57:ec69651c8c21 | 6 | |
| tnhnrl | 57:ec69651c8c21 | 7 | class ConfigFileIO { |
| tnhnrl | 57:ec69651c8c21 | 8 | public: |
| tnhnrl | 57:ec69651c8c21 | 9 | ConfigFileIO(); |
| tnhnrl | 57:ec69651c8c21 | 10 | |
| tnhnrl | 73:f6f378311c8d | 11 | //modified this to save frequency and deadband 7/11/2018 |
| tnhnrl | 57:ec69651c8c21 | 12 | |
| tnhnrl | 76:c802e1da4179 | 13 | 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 |
| tnhnrl | 73:f6f378311c8d | 14 | void savePitchData(float pitch_p_gain, float pitch_i_gain, float pitch_d_gain, float pitch_zeroOffset, float pitch_filter_freq, float pitch_deadband); |
| tnhnrl | 73:f6f378311c8d | 15 | |
| tnhnrl | 76:c802e1da4179 | 16 | void saveBCEData(float bce_p_gain, float bce_i_gain, float bce_d_gain, int bce_zeroOffset, float bce_filter_freq, float bce_deadband); //modified this because zero offsets are integers |
| tnhnrl | 73:f6f378311c8d | 17 | void saveDepthData(float depth_p_gain, float depth_i_gain, float depth_d_gain, float depth_zeroOffset, float depth_filter_freq, float depth_deadband); |
| tnhnrl | 57:ec69651c8c21 | 18 | |
| tnhnrl | 57:ec69651c8c21 | 19 | void saveRudderData(float setMinDeg, float setMaxDeg, float setCenterPWM, float setMinPWM, float setMaxPWM); |
| tnhnrl | 73:f6f378311c8d | 20 | void saveHeadingData(float heading_p_gain, float heading_i_gain, float heading_d_gain, float heading_zeroOffset, float heading_filter_freq, float heading_deadband); |
| tnhnrl | 57:ec69651c8c21 | 21 | |
| tnhnrl | 57:ec69651c8c21 | 22 | //ConfigFunctions |
| tnhnrl | 57:ec69651c8c21 | 23 | int load_BCE_config(); |
| tnhnrl | 57:ec69651c8c21 | 24 | int load_BATT_config(); |
| tnhnrl | 57:ec69651c8c21 | 25 | int load_DEPTH_config(); |
| tnhnrl | 57:ec69651c8c21 | 26 | int load_PITCH_config(); |
| tnhnrl | 57:ec69651c8c21 | 27 | int load_HEADING_config(); //heading outer loop of rudder servo |
| tnhnrl | 57:ec69651c8c21 | 28 | int load_RUDDER_config(); //rudder servo |
| tnhnrl | 57:ec69651c8c21 | 29 | int load_script(); |
| tnhnrl | 57:ec69651c8c21 | 30 | |
| tnhnrl | 57:ec69651c8c21 | 31 | private: |
| tnhnrl | 57:ec69651c8c21 | 32 | float _neutral_batt_pos_mm; |
| tnhnrl | 57:ec69651c8c21 | 33 | float _neutral_bce_pos_mm; |
| tnhnrl | 57:ec69651c8c21 | 34 | }; |
| tnhnrl | 57:ec69651c8c21 | 35 | #endif |