Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 535:cf68fe0c3002
NEW: Show a warning for each sensor if the sensor is end-of-life after calibration (Less then 8mV in Air at sea level)
author | heinrichsweikamp |
---|---|
date | Tue, 22 Aug 2017 13:23:52 +0200 |
parents | dfac393b2199 |
children | 64a45f203144 |
comparison
equal
deleted
inserted
replaced
534:a7ac5d3fd046 | 535:cf68fe0c3002 |
---|---|
1459 STRCAT "3: " | 1459 STRCAT "3: " |
1460 output_16dp .4 ; xxx.y mV | 1460 output_16dp .4 ; xxx.y mV |
1461 STRCAT_PRINT "mV " | 1461 STRCAT_PRINT "mV " |
1462 bcf leftbind | 1462 bcf leftbind |
1463 goto TFT_standard_color ; and return... | 1463 goto TFT_standard_color ; and return... |
1464 | |
1465 global TFT_sensor_surface_warning | |
1466 TFT_sensor_surface_warning: | |
1467 call TFT_warnings_color | |
1468 movff opt_x_s1+1,lo ; into bank1 | |
1469 movf lo,W ; when opt_x_s1 > 255 the sensor will just give 8 mV at a ppO2 of 0,21 any more | |
1470 bz TFT_sensor_mV2 ; the sensor is not too bad yet for a warning | |
1471 WIN_SMALL surf_mV_sensor_status_column,surf_mV_sensor1_row-.5 | |
1472 STRCPY_PRINT "\xb8" ; mark sensor as beeing at end of lifetime | |
1473 TFT_sensor_mV2: | |
1474 movff opt_x_s2+1,lo ; into bank1 | |
1475 movf lo,W ; when opt_x_s2 > 255 the sensor will just give 8 mV at a ppO2 of 0,21 any more | |
1476 bz TFT_sensor_mV3 ; the sensor is not too bad yet for a warning | |
1477 WIN_SMALL surf_mV_sensor_status_column,surf_mV_sensor2_row-.5 | |
1478 STRCPY_PRINT "\xb8" ; mark sensor as beeing at end of lifetime | |
1479 TFT_sensor_mV3: | |
1480 movff opt_x_s3+1,lo ; into bank1 | |
1481 movf lo,W ; when opt_x_s3 > 255 the sensor will just give 8 mV at a ppO2 of 0,21 any more | |
1482 bz TFT_sensor_mV4 ; the sensor is not too bad yet for a warning | |
1483 WIN_SMALL surf_mV_sensor_status_column,surf_mV_sensor3_row-.5 | |
1484 STRCPY_PRINT "\xb8" ; mark sensor as beeing at end of lifetime | |
1485 TFT_sensor_mV4: | |
1486 goto TFT_standard_color ; (And return) Done. | |
1464 | 1487 |
1465 global TFT_menu_hud | 1488 global TFT_menu_hud |
1466 TFT_menu_hud: ; Yes, update HUD data | 1489 TFT_menu_hud: ; Yes, update HUD data |
1467 call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays | 1490 call compute_ppo2 ; compute mv_sensorX and ppo2_sensorX arrays |
1468 call TFT_attention_color ; show in yellow | 1491 call TFT_attention_color ; show in yellow |
3881 goto TFT_standard_color; and return... | 3904 goto TFT_standard_color; and return... |
3882 | 3905 |
3883 global TFT_mask_ppo2 | 3906 global TFT_mask_ppo2 |
3884 TFT_mask_ppo2: | 3907 TFT_mask_ppo2: |
3885 call TFT_divemask_color | 3908 call TFT_divemask_color |
3886 WIN_TINY dm_custom_ceiling_ppo2_column, dm_custom_ceiling_text_row | |
3887 | |
3888 btfss FLAG_ccr_mode | 3909 btfss FLAG_ccr_mode |
3889 bra TFT_mask_ppo2a ; not in CC mode | 3910 bra TFT_mask_ppo2a ; not in CC mode |
3890 btfsc is_bailout | 3911 btfsc is_bailout |
3891 bra TFT_mask_ppo2a ; in CC mode but in bailout | 3912 bra TFT_mask_ppo2a ; in CC mode but in bailout |
3892 WIN_TINY dm_custom_ceiling_ppo2_column_dil,dm_custom_ceiling_text_row ; NEW position for loger text | 3913 WIN_TINY dm_custom_ceiling_ppo2_col_dil,dm_custom_ceiling_text_row ; NEW position for loger text |
3893 STRCPY_TEXT_PRINT tppO2Dil ; in CC mode and not bailout | 3914 STRCPY_TEXT_PRINT tppO2Dil ; in CC mode and not bailout |
3894 goto TFT_standard_color ; and return... | 3915 goto TFT_standard_color ; and return... |
3895 | 3916 |
3896 TFT_mask_ppo2a: | 3917 TFT_mask_ppo2a: |
3897 WIN_TINY dm_custom_ceiling_ppo2_column, dm_custom_ceiling_text_row | 3918 WIN_TINY dm_custom_ceiling_ppo2_column, dm_custom_ceiling_text_row |
4006 TFT_LogOffset_Logtitle: | 4027 TFT_LogOffset_Logtitle: |
4007 STRCPY_TEXT tLogOffset | 4028 STRCPY_TEXT tLogOffset |
4008 PUTC ":" | 4029 PUTC ":" |
4009 call do_logoffset_common_read ; Offset into lo:hi | 4030 call do_logoffset_common_read ; Offset into lo:hi |
4010 bsf leftbind | 4031 bsf leftbind |
4011 output_16 | 4032 output_16_4 |
4012 bcf leftbind | 4033 bcf leftbind |
4013 PUTC " " | 4034 PUTC " " |
4014 return ; No "_PRINT" here... | 4035 return ; No "_PRINT" here... |
4015 | 4036 |
4016 global adjust_depth_with_salinity | 4037 global adjust_depth_with_salinity |