update with altimeter, swimfile.txt endleg.txt, etc see changes_13sep.txt also reset_PI()
Dependencies: mbed MODSERIAL FATFileSystem
Diff: main.cpp
- Revision:
- 58:94b7fd55185e
- Parent:
- 57:ec69651c8c21
- Child:
- 61:f7437daae608
--- a/main.cpp Thu Jun 14 16:10:25 2018 +0000 +++ b/main.cpp Fri Jun 15 20:11:39 2018 +0000 @@ -1,5 +1,5 @@ /* - Modified FSG PCB V1_5 + Modified FSG PCB V_1_1 - Freezes when doing a dive or any timed sequence (commented out SD card references) - commented out sdLogger().appendLogFile(current_state, 0); //open SD file once - commented out sdLogger().appendLogFile(current_state, 1); //writing data @@ -22,7 +22,7 @@ * added readADCCounts() to omegaPX209 class to see channel readings * modified omegaPX209 class to use filtered ADC readings from SpiADC.readCh4() - fixed rudderLoop to headingLoop from newer code - Modified FSG PCB V2 + Modified FSG PCB V_1_2 - added init headingLoop to main - added pitch and heading outputs to STREAM_STATUS @@ -30,9 +30,10 @@ - Motor direction was opposite the BCE motor (because of gearing) - BMM P gain is now positive 0.02 (from -0.10) - Modified FSG PCB V2.5 + Modified FSG PCB V_1_3 - added timing code for interrupt that drives the rudder (testing with o-scope) - - + - PID controller replaced with newer version from 5/29 code branch + - StateMachine hanged style of variables to match convention in code */ @@ -153,6 +154,9 @@ mbedLogger().initializeLogFile(); // sdLogger().initializeLogFile(); + //tare the pressure sensor during setup + depth().tare(); + setup_complete = true; //used for interrupt timing }