Mercurial > public > ostc4
comparison Discovery/Src/vpm.c @ 973:79b522fbabe6 Evo_2_23
Deactivate deco gas calculation option:
In the previous version had the option to consider a deco gas i the calculation or not. Reason for this was to have the automatic gas suggestion available while the deco calculation is still based on the current gas.
This might cause a critical situation in case the diver is not sure if the option is active or not => In the new version the TTS / deco is always calculated considering all deco gases.
author | Ideenmodellierer |
---|---|
date | Sun, 26 Jan 2025 19:31:38 +0100 (2 months ago) |
parents | 46a21ff3f5ab |
children | 22d5b477c903 |
comparison
equal
deleted
inserted
replaced
972:12426391edd9 | 973:79b522fbabe6 |
---|---|
541 j = 0; | 541 j = 0; |
542 | 542 |
543 for (i = 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) | 543 for (i = 1; i < BUEHLMANN_STRUCT_MAX_GASES; i++) |
544 { | 544 { |
545 if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero >= depth_change[0] + 1) | 545 if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero >= depth_change[0] + 1) |
546 && (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc)) | 546 #ifdef ENABLE_DECOCALC_OPTION |
547 && (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc) | |
548 #endif | |
549 ) | |
547 continue; | 550 continue; |
548 | 551 |
549 if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero <= 0) | 552 if((pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero <= 0) |
550 || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0)) | 553 #ifdef ENABLE_DECOCALC_OPTION |
554 || (pDiveSettings->gas[pDiveSettings->decogaslist[i].GasIdInSettings].note.ub.decocalc == 0) | |
555 #endif | |
556 ) | |
551 break; | 557 break; |
552 | 558 |
553 j++; | 559 j++; |
554 number_of_changes ++; | 560 number_of_changes ++; |
555 depth_change[j] = pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero ; | 561 depth_change[j] = pDiveSettings->decogaslist[i].change_during_ascent_depth_meter_otherwise_zero ; |