comparison Discovery/Src/tMenuEdit.c @ 845:17d9d6eddd8d Evo_2_23

Added new PreDiveCheck info page: In case a DiveO2 sensor is connected to the OSTC than the values of the DiveO2 internal pressure and temperature sensors may be used for predive checks. The pressure sensors is used for over / under pressure test and the values are visualized using a graph to make it easier to check if the pressure keeps stable. The temperature measurement gives an indication if the scrubber is getting active. This view is highly dependend on the surface temperature but may be useful e.g. for diving in european area. In addition the values ofthe connected sensors are shown.
author Ideenmodellierer
date Sun, 21 Jan 2024 22:24:36 +0100
parents 4abfb8a2a435
children de6023cc0580
comparison
equal deleted inserted replaced
844:e04d7dd199fb 845:17d9d6eddd8d
34 #include "externLogbookFlash.h" 34 #include "externLogbookFlash.h"
35 #include "gfx_fonts.h" 35 #include "gfx_fonts.h"
36 #include "tHome.h" 36 #include "tHome.h"
37 #include "tInfoCompass.h" 37 #include "tInfoCompass.h"
38 #include "tInfoSensor.h" 38 #include "tInfoSensor.h"
39 #include "tInfoPreDive.h"
39 #include "tMenuEditHardware.h" 40 #include "tMenuEditHardware.h"
40 #include "tMenuEditPlanner.h" 41 #include "tMenuEditPlanner.h"
41 #include "tMenuEditSystem.h" 42 #include "tMenuEditSystem.h"
42 #include "tMenuEditXtra.h" 43 #include "tMenuEditXtra.h"
43 #include "tMenuEditCustom.h" 44 #include "tMenuEditCustom.h"
214 case (StMHARD3_Sensor_Detect): 215 case (StMHARD3_Sensor_Detect):
215 case (StMHARD3_Sensor_Info): refreshFct = refresh_O2Sensors; 216 case (StMHARD3_Sensor_Info): refreshFct = refresh_O2Sensors;
216 break; 217 break;
217 case (StMHARD2_Compass_SetCourse & MaskFieldDigit): 218 case (StMHARD2_Compass_SetCourse & MaskFieldDigit):
218 refreshFct = refresh_CompassEdit; 219 refreshFct = refresh_CompassEdit;
219
220 break; 220 break;
221 case (StMXTRA_CompassHeading & MaskFieldDigit): 221 case (StMXTRA_CompassHeading & MaskFieldDigit):
222 refreshFct = refresh_CompassHeading; 222 refreshFct = refresh_CompassHeading;
223
224 break; 223 break;
225 case (StMXTRA_PSCR_O2_Drop & MaskFieldDigit):
226 if (settingsGetPointer()->dive_mode != DIVEMODE_PSCR) { /* workaround because PSCR mode is set dynamic */
227 refreshFct = refresh_CO2Data;
228 }
229
230 break;
231 case (StMXTRA_CO2_Sensor & MaskFieldDigit): refreshFct = refresh_CO2Data;
232 break;
233 case (StMSYS4_Info & MaskFieldDigit): refreshFct = &refresh_InformationPage; 224 case (StMSYS4_Info & MaskFieldDigit): refreshFct = &refresh_InformationPage;
234 break; 225 break;
235 case (StMPLAN5_ExitResult & MaskFieldDigit): refreshFct = refresh_PlanResult; 226 case (StMPLAN5_ExitResult & MaskFieldDigit): refreshFct = refresh_PlanResult;
236 break; 227 break;
237 case (StMHARD5_Button1 & MaskFieldDigit): // will not be executed in EditFieldMode as global state is different 228 case (StMHARD5_Button1 & MaskFieldDigit): // will not be executed in EditFieldMode as global state is different