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

Committer:
tnhnrl
Date:
Wed Feb 14 21:54:03 2018 +0000
Revision:
43:891baf306e0a
Parent:
38:83d06c294807
Child:
52:f207567d3ea4
added new configfileIO

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 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 43:891baf306e0a 17 //write functions to save rudder config later
tnhnrl 43:891baf306e0a 18
tnhnrl 21:38c8544db6f4 19 //ConfigFunctions
tnhnrl 21:38c8544db6f4 20 int load_BCE_config();
tnhnrl 21:38c8544db6f4 21 int load_BATT_config();
tnhnrl 21:38c8544db6f4 22 int load_DEPTH_config();
tnhnrl 21:38c8544db6f4 23 int load_PITCH_config();
tnhnrl 43:891baf306e0a 24 int load_RUDDER_config();
tnhnrl 43:891baf306e0a 25 int load_SERVO_config();
tnhnrl 21:38c8544db6f4 26 int load_script();
tnhnrl 17:7c16b5671d0e 27
tnhnrl 17:7c16b5671d0e 28 private:
tnhnrl 17:7c16b5671d0e 29 float _neutral_batt_pos_mm;
tnhnrl 17:7c16b5671d0e 30 float _neutral_bce_pos_mm;
tnhnrl 17:7c16b5671d0e 31 };
tnhnrl 17:7c16b5671d0e 32 #endif