Mercurial > public > ostc4
comparison Discovery/Src/simulation.c @ 1070:4499227a2db8 Icon_Integration
Added compile option for o2/diluent pressure display:
Some external devices (like the RedBare rebreather) provide pressure sensor information o2 and diluent bottles. A data channel from RTE to main CPU has been defined and a visualization has been added to the lower left corner (llc). Pressure will be displayed in the gas list as well => for o2 display the definition of a 100% o2 gas is needed. Diluent will be assigned to the first gas. The ADVANCED_GAS compile switch needs to be activated for this feature
| author | Ideenmodellierer |
|---|---|
| date | Thu, 19 Feb 2026 13:17:25 +0100 |
| parents | 3c73180fde1d |
| children |
comparison
equal
deleted
inserted
replaced
| 1069:e0ba2b29dc1f | 1070:4499227a2db8 |
|---|---|
| 223 | 223 |
| 224 #ifdef ENABLE_BOTTLE_SENSOR | 224 #ifdef ENABLE_BOTTLE_SENSOR |
| 225 pDiveState->lifeData.bottle_bar[pDiveState->lifeData.actualGas.GasIdInSettings] = pRealState->lifeData.bottle_bar[pRealState->lifeData.actualGas.GasIdInSettings]; | 225 pDiveState->lifeData.bottle_bar[pDiveState->lifeData.actualGas.GasIdInSettings] = pRealState->lifeData.bottle_bar[pRealState->lifeData.actualGas.GasIdInSettings]; |
| 226 pDiveState->lifeData.bottle_bar_age_MilliSeconds[pDiveState->lifeData.actualGas.GasIdInSettings] = pRealState->lifeData.bottle_bar_age_MilliSeconds[pRealState->lifeData.actualGas.GasIdInSettings]; | 226 pDiveState->lifeData.bottle_bar_age_MilliSeconds[pDiveState->lifeData.actualGas.GasIdInSettings] = pRealState->lifeData.bottle_bar_age_MilliSeconds[pRealState->lifeData.actualGas.GasIdInSettings]; |
| 227 #endif | 227 #endif |
| 228 #ifdef ENABLE_ADVANCED_GAS | |
| 229 for(index = 0; index < NUM_GASES * 2; index++) | |
| 230 { | |
| 231 pDiveState->lifeData.bottle_bar[index] = pRealState->lifeData.bottle_bar[index]; | |
| 232 } | |
| 233 #endif | |
| 228 } | 234 } |
| 229 else if(pDiveState->lifeData.depth_meter <= (float)(decom_get_actual_deco_stop(pDiveState) + 0.001)) | 235 else if(pDiveState->lifeData.depth_meter <= (float)(decom_get_actual_deco_stop(pDiveState) + 0.001)) |
| 230 { | 236 { |
| 231 if(decoLock == DECO_CALC_FINSHED_vpm) | 237 if(decoLock == DECO_CALC_FINSHED_vpm) |
| 232 { | 238 { |
