comparison Discovery/Src/simulation.c @ 907:46a21ff3f5ab Evo_2_23

Adaptation custom view deco plan for VPM: The VPM deco plan now shows the start of deco zone as well as the state of the deco table state. In case the table defined when reaching the deco zone is updated then the header line will change to yellow to indicate this. In case a deco stop is missed the head line will change to red.
author ideenmodellierer
date Sun, 13 Oct 2024 18:13:35 +0200
parents e4e9acfde839
children
comparison
equal deleted inserted replaced
906:49ee233c7a74 907:46a21ff3f5ab
91 uint16_t max_depth = 10; 91 uint16_t max_depth = 10;
92 uint16_t diveMinutes = 0; 92 uint16_t diveMinutes = 0;
93 93
94 copyDiveSettingsToSim(); 94 copyDiveSettingsToSim();
95 copyVpmRepetetiveDataToSim(); 95 copyVpmRepetetiveDataToSim();
96 vpm_table_init();
97 96
98 //vpm_init(&stateSimGetPointerWrite()->vpm, stateSimGetPointerWrite()->diveSettings.vpm_conservatism, 0, 0); 97 //vpm_init(&stateSimGetPointerWrite()->vpm, stateSimGetPointerWrite()->diveSettings.vpm_conservatism, 0, 0);
99 stateSimGetPointerWrite()->lifeData.counterSecondsShallowDepth = 0; 98 stateSimGetPointerWrite()->lifeData.counterSecondsShallowDepth = 0;
100 stateSimGetPointerWrite()->mode = MODE_DIVE; 99 stateSimGetPointerWrite()->mode = MODE_DIVE;
101 if(aim_depth <= 0) 100 if(aim_depth <= 0)