comparison Discovery/Src/tMenuCvOptionText.c @ 1078:082825daccb5 Icon_Integration tip

Added control views for HUD: The HUD implementation may now be activated by the compile switch ENABLE_HUD_SUPPORT. The HUD will become visible onces detected in the CvOpt overview menu. The first implementation is for testing only => The LEDs may be operated by a number field. Positiv values activate the red, negativ the green LEDs. Depending on the value blink sequences will be scheduled. At the moment no dive specific data is mapped to the LED operation (like e.g. warnings).
author Ideenmodellierer
date Mon, 02 Mar 2026 17:30:38 +0100
parents c87753e73eb8
children
comparison
equal deleted inserted replaced
1077:bd8ab302ef4a 1078:082825daccb5
145 pText[textPointer++] = '\020'; 145 pText[textPointer++] = '\020';
146 pText[textPointer] = 0; 146 pText[textPointer] = 0;
147 return strlen(pText); 147 return strlen(pText);
148 } 148 }
149 149
150 uint8_t tMCvOptText_refreshHUD(char* pText)
151 {
152 uint8_t textPointer = 0;
153 textPointer += snprintf(&pText[textPointer],20,"HUD");
154 pText[textPointer] = 0;
155 return strlen(pText);
156 }
150 157
151 uint8_t tMCvOptText_BuildDynamicContentList() 158 uint8_t tMCvOptText_BuildDynamicContentList()
152 { 159 {
153 uint8_t cvOptIndex = 0; 160 uint8_t cvOptIndex = 0;
154 uint8_t CvOptAvailable = 0; 161 uint8_t CvOptAvailable = 0;
172 break; 179 break;
173 #if defined ENABLE_GNSS_INTERNAL || defined ENABLE_GNSS_EXTERN 180 #if defined ENABLE_GNSS_INTERNAL || defined ENABLE_GNSS_EXTERN
174 case SENSOR_GNSS: SensorActive[SENSOR_GNSS] = 1; 181 case SENSOR_GNSS: SensorActive[SENSOR_GNSS] = 1;
175 break; 182 break;
176 #endif 183 #endif
184 #ifdef ENABLE_HUD_SUPPORT
185 case SENSOR_HUD: SensorActive[SENSOR_HUD] = 1;
186 break;
187 #endif
177 default: 188 default:
178 break; 189 break;
179 } 190 }
180 } 191 }
181 192
205 case CVOPT_CO2_Sensor: if(SensorActive[SENSOR_CO2]) 216 case CVOPT_CO2_Sensor: if(SensorActive[SENSOR_CO2])
206 { 217 {
207 refreshFctPointerTable[activeLines] = tMCvOptText_refreshCO2; 218 refreshFctPointerTable[activeLines] = tMCvOptText_refreshCO2;
208 CvOptAvailable = 1; 219 CvOptAvailable = 1;
209 } 220 }
210 break; 221 break;
222 case CVOPT_HUD: if(SensorActive[SENSOR_HUD])
223 {
224 refreshFctPointerTable[activeLines] = tMCvOptText_refreshHUD;
225 CvOptAvailable = 1;
226 }
227 break;
211 default: 228 default:
212 break; 229 break;
213 } 230 }
214 if(CvOptAvailable) 231 if(CvOptAvailable)
215 { 232 {