Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 94:f2201aa374db
BUGFIX: compass calibration does now timeout automatically after 60s
BUGFIX: decoplan re-calculation in bailout case
author | heinrichsweikamp |
---|---|
date | Tue, 22 Apr 2014 12:59:14 +0200 |
parents | 3274e87fd027 |
children | a4bff632e97b |
comparison
equal
deleted
inserted
replaced
93:5e1ef9bf32ec | 94:f2201aa374db |
---|---|
1138 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | 1138 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required |
1139 output_16 | 1139 output_16 |
1140 STRCAT_PRINT " " | 1140 STRCAT_PRINT " " |
1141 return | 1141 return |
1142 | 1142 |
1143 global TFT_show_timeout_testmode | |
1144 TFT_show_timeout_testmode: ; With timeout in WREG... | |
1145 movwf hi | |
1146 WIN_TINY .20,.68 | |
1147 STRCPY "T:" | |
1148 movf timeout_counter2,W ; current timeout | |
1149 subwf hi,W ; subtract from timeout value | |
1150 addlw .1 ; +1 | |
1151 movwf lo | |
1152 bsf leftbind | |
1153 output_8 ; Display timeout | |
1154 bcf leftbind | |
1155 STRCAT_PRINT "s " | |
1156 return | |
1157 | |
1158 | |
1143 global TFT_compass_show_gain | 1159 global TFT_compass_show_gain |
1144 TFT_compass_show_gain: ; Show the current compass gain | 1160 TFT_compass_show_gain: ; Show the current compass gain |
1145 movff opt_compass_gain,lo ; 0-7 (230LSB/Gauss to 1370LSB/Gaus) | 1161 movff opt_compass_gain,lo ; 0-7 (230LSB/Gauss to 1370LSB/Gaus) |
1146 tstfsz lo | 1162 tstfsz lo |
1147 return ; Do not show unless gain=0 | 1163 return ; Do not show unless gain=0 |
1148 WIN_TINY .20,.68 | 1164 WIN_TINY .20,.86 |
1149 STRCPY_TEXT tCompassGain | 1165 STRCPY_TEXT tCompassGain |
1150 movff opt_compass_gain,lo ; 0-7 (230LSB/Gauss to 1370LSB/Gaus) | 1166 movff opt_compass_gain,lo ; 0-7 (230LSB/Gauss to 1370LSB/Gaus) |
1151 bsf leftbind | 1167 bsf leftbind |
1152 output_8 | 1168 output_8 |
1153 bcf leftbind | 1169 bcf leftbind |