comparison Discovery/Src/data_central.c @ 902:d4622533271d Evo_2_23

VPM table mode: Because of the model maths, usage of float data type and so on it may happen that the TTS decreases during ascent and continues calculation of the vpm. To keep the values stable the vpm table mode has been introduces. Instead of continously calculation of the stops the stop time is decreased if the diver is close to a deco stop. If the table is violated (e.g. by not doing gas change) the table will be updated to the new, longer runtime. The table will not be switch back to a shorter version in case e.g. the missed gas change is performed
author Ideenmodellierer
date Wed, 02 Oct 2024 22:18:19 +0200
parents a7f4451ba69e
children 57fc479745b0
comparison
equal deleted inserted replaced
901:e4e9acfde839 902:d4622533271d
345 stateReal.diveSettings.gf_high = pSettings->GF_high; 345 stateReal.diveSettings.gf_high = pSettings->GF_high;
346 stateReal.diveSettings.gf_low = pSettings->GF_low; 346 stateReal.diveSettings.gf_low = pSettings->GF_low;
347 stateReal.diveSettings.input_next_stop_increment_depth_bar = ((float)pSettings->stop_increment_depth_meter) / 10.0f; 347 stateReal.diveSettings.input_next_stop_increment_depth_bar = ((float)pSettings->stop_increment_depth_meter) / 10.0f;
348 stateReal.diveSettings.last_stop_depth_bar = ((float)pSettings->last_stop_depth_meter) / 10.0f; 348 stateReal.diveSettings.last_stop_depth_bar = ((float)pSettings->last_stop_depth_meter) / 10.0f;
349 stateReal.diveSettings.vpm_conservatism = pSettings->VPM_conservatism.ub.standard; 349 stateReal.diveSettings.vpm_conservatism = pSettings->VPM_conservatism.ub.standard;
350 stateReal.diveSettings.vpm_tableMode = pSettings->VPM_conservatism.ub.alternative;
350 stateReal.diveSettings.deco_type.uw = pSettings->deco_type.uw; 351 stateReal.diveSettings.deco_type.uw = pSettings->deco_type.uw;
351 stateReal.diveSettings.fallbackOption = pSettings->fallbackToFixedSetpoint; 352 stateReal.diveSettings.fallbackOption = pSettings->fallbackToFixedSetpoint;
352 stateReal.diveSettings.ppo2sensors_deactivated = pSettings->ppo2sensors_deactivated; 353 stateReal.diveSettings.ppo2sensors_deactivated = pSettings->ppo2sensors_deactivated;
353 stateReal.diveSettings.future_TTS_minutes = pSettings->future_TTS; 354 stateReal.diveSettings.future_TTS_minutes = pSettings->future_TTS;
354 355