Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu.asm @ 125:2907b42c195b
Altimeter:
- use H = 19902 log10(P0/P)
- Interface to select sea level mbars.
- Average over 32 values, using 1/16 of mbar.
- Display in customview area.
- Fix display ****m when not yet computed
- Fix reset when exiting sleep mode
- Fix : edit menu in 1/4 of mbar.
- Fix use CF#49 to enable/disable altimeter, also in altimeter menu.
- Fix visible in Menu 2
author | JeanDo |
---|---|
date | Wed, 29 Dec 2010 01:41:13 +0100 |
parents | 6a94f96e9cea |
children | 06c4899ddb4b |
comparison
equal
deleted
inserted
replaced
124:4f9f477bb452 | 125:2907b42c195b |
---|---|
169 bcf switch_left | 169 bcf switch_left |
170 bcf switch_right | 170 bcf switch_right |
171 more_menu_loop: | 171 more_menu_loop: |
172 call check_switches_menu | 172 call check_switches_menu |
173 | 173 |
174 movlw d'5' ; 5 items in "More Menu" | 174 ; movlw d'5' ; 5 items in "More Menu" |
175 cpfseq menupos | 175 ; cpfseq menupos |
176 bra more_menu_loop2 | 176 ; bra more_menu_loop2 |
177 movlw d'6' | 177 ; movlw d'6' |
178 movwf menupos | 178 ; movwf menupos |
179 call PLED_menu_cursor | 179 ; call PLED_menu_cursor |
180 | 180 |
181 more_menu_loop2: | 181 ;more_menu_loop2: |
182 btfsc menubit2 | 182 btfsc menubit2 |
183 bra do_more_menu ; call submenu | 183 bra do_more_menu ; call submenu |
184 | 184 |
185 btfss menubit | 185 btfss menubit |
186 bra menu ; exit setup menu and return to main menu | 186 bra menu ; exit setup menu and return to main menu |
215 dcfsnz menupos,F | 215 dcfsnz menupos,F |
216 goto menu_battery_state | 216 goto menu_battery_state |
217 dcfsnz menupos,F | 217 dcfsnz menupos,F |
218 goto menu_simulator | 218 goto menu_simulator |
219 dcfsnz menupos,F | 219 dcfsnz menupos,F |
220 goto menu_simulator | 220 goto altimeter_menu |
221 movlw d'5' | 221 movlw d'5' |
222 movwf menupos | 222 movwf menupos |
223 bra menu2 ; exit... | 223 bra menu2 ; exit... |
224 | 224 |
225 setup_menu: | 225 setup_menu: |