Mercurial > public > ostc4
comparison Discovery/Src/tMenuXtra.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 | ffb1036c27c2 |
children | bc2fcd002fc4 |
comparison
equal
deleted
inserted
replaced
844:e04d7dd199fb | 845:17d9d6eddd8d |
---|---|
188 strcpy(&text[textPointer],"\n\r"); | 188 strcpy(&text[textPointer],"\n\r"); |
189 textPointer += 2; | 189 textPointer += 2; |
190 } | 190 } |
191 | 191 |
192 #ifdef ENABLE_PSCR_MODE | 192 #ifdef ENABLE_PSCR_MODE |
193 if(pSettings->dive_mode == DIVEMODE_PSCR) | 193 if((line == 0) || (line == 4)) |
194 { | 194 { |
195 if((line == 0) || (line == 4)) | 195 if(pSettings->dive_mode == DIVEMODE_PSCR) |
196 { | 196 { |
197 textPointer += snprintf(&text[textPointer], 60,\ | 197 textPointer += snprintf(&text[textPointer], 60, "%c",TXT_PSClosedCircuit); |
198 "%c" | 198 enableLine(StMXTRA_PSCR_O2_Drop); |
199 ,TXT_PSClosedCircuit); | 199 } |
200 } | 200 else |
201 } | 201 { |
202 text[textPointer++] = '\031'; /* change text color */ | |
203 textPointer += snprintf(&text[textPointer], 60,"%c",TXT_PSClosedCircuit); | |
204 text[textPointer++] = '\020'; /* restore text color */ | |
205 disableLine(StMXTRA_PSCR_O2_Drop); | |
206 } | |
207 strcpy(&text[textPointer],"\n\r"); | |
208 textPointer += 2; | |
209 } | |
202 #endif | 210 #endif |
211 if((pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_ANADIG) || (pSettings->ppo2sensors_source == O2_SENSOR_SOURCE_DIGITAL)) | |
212 { | |
213 if((line == 0) || (line == 5)) | |
214 { | |
215 textPointer += snprintf(&text[textPointer], 60,\ | |
216 "%c" | |
217 ,TXT_PreDive); | |
218 } | |
219 } | |
203 } | 220 } |
204 return StMXTRA; | 221 return StMXTRA; |
205 } | 222 } |
206 | 223 |