Mercurial > public > hwos_code
comparison src/start.asm @ 24:f51caad821b4
save logbook recording interval
author | heinrichsweikamp |
---|---|
date | Mon, 08 Jul 2013 14:57:13 +0200 |
parents | e402813343b6 |
children | 76dfe320e6ec |
comparison
equal
deleted
inserted
replaced
23:e402813343b6 | 24:f51caad821b4 |
---|---|
230 clrf flag7 | 230 clrf flag7 |
231 clrf flag8 | 231 clrf flag8 |
232 clrf flag9 | 232 clrf flag9 |
233 bsf tft_is_dimming ; TFT is dimming up (soon), ignore ambient sensor! | 233 bsf tft_is_dimming ; TFT is dimming up (soon), ignore ambient sensor! |
234 | 234 |
235 ; Setup sampling rate | |
236 movlw .10 | |
237 tstfsz opt_sampling_rate ; =1: 2s, =0: 10s | |
238 movlw .2 | |
239 movwf samplingrate | |
240 | |
241 ; Select high altitude (Fly) mode? | 235 ; Select high altitude (Fly) mode? |
242 movff last_surfpressure_30min+0,sub_b+0 | 236 movff last_surfpressure_30min+0,sub_b+0 |
243 movff last_surfpressure_30min+1,sub_b+1 | 237 movff last_surfpressure_30min+1,sub_b+1 |
244 movlw HIGH high_altitude_threshold | 238 movlw HIGH high_altitude_threshold |
245 movwf sub_a+1 | 239 movwf sub_a+1 |
260 ; Setup all flags and parameters for divemode and simulator computations. | 254 ; Setup all flags and parameters for divemode and simulator computations. |
261 ; | 255 ; |
262 global restart_set_modes_and_flags | 256 global restart_set_modes_and_flags |
263 restart_set_modes_and_flags: ; "Call"ed from divemode, as well! | 257 restart_set_modes_and_flags: ; "Call"ed from divemode, as well! |
264 call option_restore_all ; Restore everything from EEPROM | 258 call option_restore_all ; Restore everything from EEPROM |
259 | |
260 ; Setup sampling rate | |
261 movlw .2 | |
262 movwf samplingrate | |
263 TSTOSS opt_sampling_rate ; =1: 10s, =0: 2s | |
264 bra restart_set_modes_and_flags1 | |
265 movlw .10 | |
266 movwf samplingrate | |
267 restart_set_modes_and_flags1: | |
265 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea | 268 movff opt_dive_mode,lo ; 0=OC, 1=CC, 2=Gauge, 3=Apnea |
266 | 269 |
267 bcf FLAG_apnoe_mode | 270 bcf FLAG_apnoe_mode |
268 bcf FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active | 271 bcf FLAG_ccr_mode ; =1: CCR mode (Fixed ppO2 or Sensor) active |
269 bcf FLAG_gauge_mode ; =1: In Gauge mode | 272 bcf FLAG_gauge_mode ; =1: In Gauge mode |