Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 326:d21b172d5a7a new_screen_layout
VSIbar #4: VSI settings submenu, graph option, logbook offset and compass calib. menu exit fix
author | Janos Kovacs <kovjanos@gmail.com> |
---|---|
date | Sat, 13 Jun 2015 22:53:05 +0200 |
parents | 8b70dd8d9904 |
children | bd7f4c1bdb33 |
comparison
equal
deleted
inserted
replaced
325:d82516b8298e | 326:d21b172d5a7a |
---|---|
988 TFT_velocity_VSIbar: | 988 TFT_velocity_VSIbar: |
989 ; use another logic when descending | 989 ; use another logic when descending |
990 btfss neg_flag_velocity | 990 btfss neg_flag_velocity |
991 bra TFT_velocity_VSIbar_desc | 991 bra TFT_velocity_VSIbar_desc |
992 call TFT_velocity_VSIbar_desc_clr | 992 call TFT_velocity_VSIbar_desc_clr |
993 | |
994 TSTOSS opt_vsigraph ; 0=skip, 1=draw | |
995 return | |
996 | |
993 btfsc velocity_warn | 997 btfsc velocity_warn |
994 bra TFT_velocity_VSIbar_warn | 998 bra TFT_velocity_VSIbar_warn |
995 ; if all ok or attention, use attn's values | 999 ; if all ok or attention, use attn's values |
996 movff xC+1,sub_b+0 ; multiplier | 1000 movff xC+1,sub_b+0 ; multiplier |
997 movff xC+3,sub_b+1 ; offset | 1001 movff xC+3,sub_b+1 ; offset |
1101 return | 1105 return |
1102 | 1106 |
1103 TFT_velocity_VSIbar_desc: | 1107 TFT_velocity_VSIbar_desc: |
1104 ; clear the ascend part of the bar | 1108 ; clear the ascend part of the bar |
1105 call TFT_velocity_VSIbar_clr | 1109 call TFT_velocity_VSIbar_clr |
1110 | |
1111 TSTOSS opt_vsigraph ; 0=skip, 1=draw | |
1112 return | |
1113 | |
1106 ; divA+0=0 is descend, clear everything if it's actually zero | 1114 ; divA+0=0 is descend, clear everything if it's actually zero |
1107 movlw .0 | 1115 movlw .0 |
1108 cpfsgt divA+0 | 1116 cpfsgt divA+0 |
1109 bra TFT_velocity_VSIbar_desc_clr | 1117 bra TFT_velocity_VSIbar_desc_clr |
1110 | 1118 |
4087 output_16 | 4095 output_16 |
4088 bcf leftbind | 4096 bcf leftbind |
4089 PUTC " " | 4097 PUTC " " |
4090 return ; No "_PRINT" here... | 4098 return ; No "_PRINT" here... |
4091 | 4099 |
4100 global TFT_VSImenu_dynamictitle | |
4101 TFT_VSImenu_dynamictitle: | |
4102 STRCPY_TEXT tVSItext1 | |
4103 PUTC " " | |
4104 return ; No "_PRINT" here... | |
4105 | |
4092 | 4106 |
4093 global adjust_depth_with_salinity | 4107 global adjust_depth_with_salinity |
4094 adjust_depth_with_salinity: ; computes salinity setting into lo:hi [mbar] | 4108 adjust_depth_with_salinity: ; computes salinity setting into lo:hi [mbar] |
4095 btfsc simulatormode_active ; Do apply salinity in Simulatormode | 4109 btfsc simulatormode_active ; Do apply salinity in Simulatormode |
4096 return | 4110 return |