most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown
Dependencies: mbed MODSERIAL FATFileSystem
ConfigFileIO/ConfigFileIO.hpp@52:f207567d3ea4, 2018-06-06 (annotated)
- Committer:
- tnhnrl
- Date:
- Wed Jun 06 19:18:47 2018 +0000
- Revision:
- 52:f207567d3ea4
- Parent:
- 43:891baf306e0a
version with non-working motors
Who changed what in which revision?
User | Revision | Line number | New 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 | 38:83d06c294807 | 11 | void saveBattData(float p_gain, float i_gain, float d_gain); |
tnhnrl | 21:38c8544db6f4 | 12 | void savePitchData(float p_gain, float i_gain, float d_gain, int batt_zeroOffset); |
tnhnrl | 38:83d06c294807 | 13 | |
tnhnrl | 38:83d06c294807 | 14 | void saveBCEData(float p_gain, float i_gain, float d_gain); |
tnhnrl | 21:38c8544db6f4 | 15 | void saveDepthData(float p_gain, float i_gain, float d_gain, int bce_zeroOffset); |
tnhnrl | 17:7c16b5671d0e | 16 | |
tnhnrl | 52:f207567d3ea4 | 17 | // 06 / 06 / 2018 |
tnhnrl | 52:f207567d3ea4 | 18 | void saveRudderData(float setMinDeg, float setMaxDeg, float setCenterPWM, float setMinPWM, float setMaxPWM); |
tnhnrl | 52:f207567d3ea4 | 19 | |
tnhnrl | 43:891baf306e0a | 20 | //write functions to save rudder config later |
tnhnrl | 43:891baf306e0a | 21 | |
tnhnrl | 21:38c8544db6f4 | 22 | //ConfigFunctions |
tnhnrl | 21:38c8544db6f4 | 23 | int load_BCE_config(); |
tnhnrl | 21:38c8544db6f4 | 24 | int load_BATT_config(); |
tnhnrl | 21:38c8544db6f4 | 25 | int load_DEPTH_config(); |
tnhnrl | 21:38c8544db6f4 | 26 | int load_PITCH_config(); |
tnhnrl | 43:891baf306e0a | 27 | int load_RUDDER_config(); |
tnhnrl | 43:891baf306e0a | 28 | int load_SERVO_config(); |
tnhnrl | 21:38c8544db6f4 | 29 | int load_script(); |
tnhnrl | 17:7c16b5671d0e | 30 | |
tnhnrl | 17:7c16b5671d0e | 31 | private: |
tnhnrl | 17:7c16b5671d0e | 32 | float _neutral_batt_pos_mm; |
tnhnrl | 17:7c16b5671d0e | 33 | float _neutral_bce_pos_mm; |
tnhnrl | 17:7c16b5671d0e | 34 | }; |
tnhnrl | 52:f207567d3ea4 | 35 | #endif |