Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 233:2cbaa01dac26
Hunting for NoFly (bug BB13)... not found yet...
+ In DEBUG compile, keep simulated dives in logbook, desat and nofly time, etc.
author | JeanDo |
---|---|
date | Tue, 15 Mar 2011 19:16:34 +0100 |
parents | 85ea09d3b9d8 |
children | 3dbeacf42e9e |
comparison
equal
deleted
inserted
replaced
232:59c479181724 | 233:2cbaa01dac26 |
---|---|
95 bcf switch_right | 95 bcf switch_right |
96 call PLED_active_gas_surfmode ; Show start gas / SetPoint | 96 call PLED_active_gas_surfmode ; Show start gas / SetPoint |
97 call PLED_custom_text ; Displays custom text | 97 call PLED_custom_text ; Displays custom text |
98 clrf cf_checker_counter ; next cf to check | 98 clrf cf_checker_counter ; next cf to check |
99 ostc_debug 'G' ; Sends debug-information to screen if debugmode active | 99 ostc_debug 'G' ; Sends debug-information to screen if debugmode active |
100 | |
101 ; Desaturation time needs: | |
102 ; int_I_pres_surface | |
103 ; char_I_desaturation_multiplier | |
100 GETCUSTOM8 d'12' ; Desaturation multiplier % | 104 GETCUSTOM8 d'12' ; Desaturation multiplier % |
101 movwf wait_temp | 105 movff WREG,char_I_desaturation_multiplier |
102 movff wait_temp,char_I_desaturation_multiplier | 106 |
103 GETCUSTOM8 d'11' ; Saturation multiplier % | |
104 movwf wait_temp | |
105 movff wait_temp,char_I_saturation_multiplier | |
106 call deco_calc_desaturation_time ; calculate desaturation time | 107 call deco_calc_desaturation_time ; calculate desaturation time |
107 movlb b'00000001' ; select ram bank 1 | 108 movlb b'00000001' ; select ram bank 1 |
108 ostc_debug 'H' ; Sends debug-information to screen if debugmode active | 109 ostc_debug 'H' ; Sends debug-information to screen if debugmode active |
109 | 110 |
110 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | 111 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
116 btfss FLAG_const_ppO2_mode ; are we in const. ppO2 mode? | 117 btfss FLAG_const_ppO2_mode ; are we in const. ppO2 mode? |
117 bra surfloop_loop1 ; No | 118 bra surfloop_loop1 ; No |
118 ; One Second tasks for ppO2 modes | 119 ; One Second tasks for ppO2 modes |
119 | 120 |
120 bra surfloop_loop1 ; Do not search for sensor in CC mode | 121 bra surfloop_loop1 ; Do not search for sensor in CC mode |
121 | |
122 | 122 |
123 surfloop_loop1: | 123 surfloop_loop1: |
124 ; One Second tasks for all modes | 124 ; One Second tasks for all modes |
125 call PLED_clock ; update clock | 125 call PLED_clock ; update clock |
126 call test_charger ; check if charger IC is active | 126 call test_charger ; check if charger IC is active |