Mercurial > public > ostc4
comparison Discovery/Src/simulation.c @ 953:d565812061f4 Evo_2_23
Bugfix ascent graph in simulator:
The ascent graph in simulator mode was not show if a depth < 5m was reached. Rootcause was a wrong source for current depth. This has be fixed now.
| author | Ideenmodellierer |
|---|---|
| date | Wed, 01 Jan 2025 17:28:36 +0100 |
| parents | 4d98fb2a178e |
| children | 79b522fbabe6 |
comparison
equal
deleted
inserted
replaced
| 952:33e24b77cc6c | 953:d565812061f4 |
|---|---|
| 229 } | 229 } |
| 230 } | 230 } |
| 231 | 231 |
| 232 pDiveState->lifeData.dive_time_seconds += 1; | 232 pDiveState->lifeData.dive_time_seconds += 1; |
| 233 pDiveState->lifeData.pressure_ambient_bar = sim_get_ambient_pressure(pDiveState); | 233 pDiveState->lifeData.pressure_ambient_bar = sim_get_ambient_pressure(pDiveState); |
| 234 if(pDiveState->lifeData.pressure_ambient_bar < 1.5) | 234 if(pDiveState->lifeData.depth_meter < 1.5) |
| 235 { | 235 { |
| 236 lastPressure_bar = 0; | 236 lastPressure_bar = 0; |
| 237 pDiveState->lifeData.ascent_rate_meter_per_min = 0; | 237 pDiveState->lifeData.ascent_rate_meter_per_min = 0; |
| 238 } | 238 } |
| 239 | 239 |
