comparison Discovery/Src/tMenuDeco.c @ 882:608d3e918146 Evo_2_23

Added slow exit timer function: At the end of the dive the final ascent to surface should be done slowly. The new function provides a comparison of the current divers depth compared to a linear ascent simulated by the OSTC. The visualization is shown instead of the ascent speed with a little different appearance. The linear ascent is starting from the last stop depth and the time for the ascent may be configurated in the deco settings. The simulated and real peth is compared and the depth color changes based on the difference of the values. In case the diver is much below the timer depth then the timer will stop and wait for the diver to follow.
author Ideenmodellierer
date Sat, 31 Aug 2024 17:35:52 +0200
parents e81afd727993
children
comparison
equal deleted inserted replaced
881:5b675077ccfb 882:608d3e918146
132 strcpy(&text[textPointer],"\n\r"); 132 strcpy(&text[textPointer],"\n\r");
133 textPointer += 2; 133 textPointer += 2;
134 134
135 if((line == 0) || (line == 4)) 135 if((line == 0) || (line == 4))
136 { 136 {
137 if(settingsGetPointer()->slowExitTime != 0)
138 {
139 textPointer += snprintf(&text[textPointer], 60,\
140 "%c%c\t%u\016\016 %c\017 ^ %u\016\016 %c%c\017"
141 , TXT_2BYTE
142 , TXT2BYTE_SlowExit
143 , settingsGetPointer()->slowExitTime
144 ,TXT_Minutes
145 , unit_depth_integer(settingsGetPointer()->last_stop_depth_meter)
146 , unit_depth_char1()
147 , unit_depth_char2()
148 );
149 }
150 else
151 {
152 textPointer += snprintf(&text[textPointer], 60, "%c%c\t%c%c"
153 , TXT_2BYTE
154 , TXT2BYTE_SlowExit
155 , TXT_2BYTE
156 , TXT2BYTE_MoCtrlNone
157 );
158 }
159 }
160 strcpy(&text[textPointer],"\n\r");
161 textPointer += 2;
162 if((line == 0) || (line == 5))
163 {
137 textPointer += snprintf(&text[textPointer], 60,\ 164 textPointer += snprintf(&text[textPointer], 60,\
138 "%c" 165 "%c"
139 "\t" 166 "\t"
140 "%u" 167 "%u"
141 "\016\016" 168 "\016\016"
147 ); 174 );
148 } 175 }
149 strcpy(&text[textPointer],"\n\r"); 176 strcpy(&text[textPointer],"\n\r");
150 textPointer += 2; 177 textPointer += 2;
151 178
152 if((line == 0) || (line == 5)) 179 if((line == 0) || (line == 6))
153 { 180 {
154 textPointer += snprintf(&text[textPointer], 60,\ 181 textPointer += snprintf(&text[textPointer], 60,\
155 "%c" 182 "%c"
156 "\t" 183 "\t"
157 "%u" 184 "%u"