comparison Discovery/Src/t7.c @ 756:6de83d8205a0

Added visualization of CO2 during dive: In the previous version CO2 values were available in sufrace mode only. Now the display of Co2 value has been added to the lower left corner view. In addition a Co2 alarm has been added. Early Co2 warning vaues will be displayed in yellow while critical values are shown in red.
author Ideenmodellierer
date Tue, 07 Mar 2023 20:02:05 +0100
parents 9334bdc30d60
children b6d8a6fbf4fd
comparison
equal deleted inserted replaced
755:92bf7bf9fb8a 756:6de83d8205a0
1410 count += stateUsed->warnings.ppO2Low; 1410 count += stateUsed->warnings.ppO2Low;
1411 count += stateUsed->warnings.ppO2High; 1411 count += stateUsed->warnings.ppO2High;
1412 //count += stateUsed->warnings.lowBattery; 1412 //count += stateUsed->warnings.lowBattery;
1413 count += stateUsed->warnings.sensorLinkLost; 1413 count += stateUsed->warnings.sensorLinkLost;
1414 count += stateUsed->warnings.fallback; 1414 count += stateUsed->warnings.fallback;
1415 count += stateUsed->warnings.co2High;
1415 #ifdef ENABLE_BOTTLE_SENSOR 1416 #ifdef ENABLE_BOTTLE_SENSOR
1416 if(stateUsed->warnings.newPressure) 1417 if(stateUsed->warnings.newPressure)
1417 { 1418 {
1418 count++; 1419 count++;
1419 } 1420 }
1558 if(stateUsed->warnings.newPressure) 1559 if(stateUsed->warnings.newPressure)
1559 { 1560 {
1560 text[textpointer++] = '\001'; 1561 text[textpointer++] = '\001';
1561 sprintf(&text[textpointer]," %u Bar\n", stateUsed->warnings.newPressure); 1562 sprintf(&text[textpointer]," %u Bar\n", stateUsed->warnings.newPressure);
1562 textpointer++; 1563 textpointer++;
1564 lineFree--;
1565 }
1566 #endif
1567 #ifdef ENABLE_CO2_SUPPORT
1568 if(lineFree && stateUsed->warnings.co2High)
1569 {
1570 text[textpointer++] = '\001';
1571 text[textpointer++] = TXT_2BYTE;
1572 text[textpointer++] = TXT2BYTE_WarnCO2High;
1573 text[textpointer++] = '\n';
1574 text[textpointer++] = '\r';
1575 text[textpointer] = 0;
1563 lineFree--; 1576 lineFree--;
1564 } 1577 }
1565 #endif 1578 #endif
1566 /* 1579 /*
1567 if(lineFree && stateUsed->warnings.lowBattery) 1580 if(lineFree && stateUsed->warnings.lowBattery)