Mercurial > public > mk2
view code_part1/OSTC_code_asm_part1/dive_nitrox.inc @ 212:275befc5f39d
Debug GF model (bug #11 & #12).
+ ASSERT stops should be computed in order (bug#11).
+ BUGFIX: Mark GF_low reference at actual first stop, not predicted one.
+ BUGFIX: sim_to_first_stop() stops BEFORE first stop, not after (bug#11).
+ BUGFIX: check that calc_nextdecodepth() don't ascent faster than 10m/mn (bug#11).
+ BUGFIX: calc_nextdecodepth() should check gas switch, too (bug#11).
+ let gas switch detection in depth/meter (not ambientPresure/mbar).
+ BUGFIX OCR mode: bad diluent value in sim_alveolar_pressure() (bug#11).
+ BUGFIX: add deco distance (offset) only to compartiment integration, not to B?hlmann or GF criterion.
+ BUGFIX: add margin one meter above gas switch depth (bug#12)
+ BUGFIX: When ascenting too fast, cancel gas switch delay and history (bug#11).
author | JeanDo |
---|---|
date | Mon, 21 Feb 2011 22:36:48 +0100 |
parents | 652e17b6267a |
children |
line wrap: on
line source
dive_nitrox_width equ .78 dive_nitrox_height equ .26 dive_nitrox_block: db .39, .26 db .9, 0 dw 0x0000 ; rgb=(0,0,0) dw 0x10c0 ; rgb=(19,25,6) dw 0x4303 ; rgb=(71,96,24) dw 0x74c4 ; rgb=(115,154,38) dw 0x8dc5 ; rgb=(138,185,46) dw 0x9e66 ; rgb=(153,204,51) dw 0x2181 ; rgb=(37,49,12) dw 0x5bc3 ; rgb=(90,120,29) dw 0x0860 ; rgb=(9,12,3) ; db 0xf0, 0x07, 0x59, 0x0f, 0x59, 0x0f, 0x59, 0x0f db 0x59, 0x0e, 0x20, 0x59, 0x20, 0x0b, 0x60, 0x30 db 0x5b, 0x30, 0x60, 0x08, 0x20, 0x5f, 0x20, 0x06 db 0x70, 0xf1, 0x51, 0x70, 0x04, 0x20, 0x52, 0x40 db 0x3c, 0x40, 0x51, 0x20, 0x02, 0x10, 0x40, 0x52 db 0x20, 0x0c, 0x20, 0x51, 0x40, 0x10, 0x01, 0x70 db 0x53, 0x20, 0x04, 0x67, 0x70, 0x52, 0x70, 0x00 db 0x10, 0x54, 0x30, 0x10, 0x03, 0x60, 0x30, 0x5a db 0x10, 0x20, 0x56, 0x70, 0x80, 0x03, 0x60, 0x30 db 0x58, 0x20, 0x30, 0x57, 0x40, 0x20, 0x80, 0x03 db 0x20, 0x40, 0x56, 0x30, 0x40, 0x59, 0x40, 0x20 db 0x04, 0x20, 0x40, 0x54, 0x40, 0x5c, 0x40, 0x20 db 0x03, 0x80, 0x30, 0x5a, 0x20, 0x0c, 0x20, 0x5a db 0x20, 0x0c, 0x20, 0xf4, 0x52, 0x70, 0x20, 0x40 db 0xf1, 0x56, 0x60, 0x00, 0x30, 0xf1, 0x56, 0x60 db 0x00, 0x30, 0xf1, 0x56, 0x60, 0x00, 0x30, 0xf1 db 0x51, 0x20, 0x01, 0x20, 0x50, 0x60, 0x08, 0x20 db 0x59, 0x20, 0x01, 0x20, 0x50, 0x60, 0x08, 0x20 db 0x59, 0x20, 0x01, 0x20, 0x50, 0x60, 0x08, 0x20 db 0xf7, 0x56, 0x20, 0x00, 0x20, 0xf1, 0x56, 0x20 db 0x00, 0x20, 0xf1, 0x53, 0x20, 0x08, 0x80, 0x60 db 0x30, 0x5c, 0x20, 0x0b, 0x30, 0x5b, 0x20, 0x0b db 0x60, 0x5e, 0x20, 0x00, 0x20, 0x53, 0x40, 0x60 db 0x00, 0x60, 0x5e, 0x20, 0x00, 0x20, 0x54, 0x20 db 0x00, 0x60, 0x5e, 0x20, 0x00, 0x20, 0x54, 0x20 db 0x00, 0x60, 0x5e, 0x30, 0x20, 0x30, 0x54, 0x61 db 0x70, 0xf4, 0x52, 0x39, 0x40, 0x5e, 0x60, 0x08 db 0x20, 0x5e, 0x60, 0x08, 0x20, 0x5e, 0x70, 0x60 db 0x01, 0x60, 0x24, 0x30, 0x5e, 0x30, 0x01, 0x20 db 0xf1, 0x55, 0x60, 0x00, 0x10, 0xf1, 0x56, 0x01 db 0x60, 0xf1, 0x56, 0x02, 0x60, 0xf1, 0x55, 0x80 db 0x01, 0x60, 0xf3, 0x51, 0x30, 0x20, 0x62, 0x20 db 0x40, 0xf1, 0x51, 0x20, 0x05, 0x80, 0x70, 0x5f db 0x30, 0x07, 0x80, 0x40, 0x5e, 0x60, 0x00, 0x80 db 0x20, 0x32, 0x20, 0x01, 0x20, 0x5e, 0x01, 0x30 db 0x54, 0x20, 0x00, 0x60, 0x5e, 0x01, 0x40, 0x54 db 0x30, 0x00, 0x60, 0x5e, 0x01, 0x20, 0x53, 0x40 db 0x60, 0x00, 0x60, 0x5e, 0x60, 0x01, 0x10, 0x60 db 0x20, 0x60, 0x80, 0x01, 0x70, 0x5e, 0x30, 0x80 db 0x06, 0x60, 0x40, 0x5f, 0x30, 0x10, 0x04, 0x60 db 0x40, 0xf1, 0x52, 0x30, 0x70, 0x20, 0x70, 0x30 db 0xf1, 0x51, 0x70, 0x40, 0x56, 0x71, 0x5e, 0x60 db 0x10, 0x30, 0x53, 0x40, 0x20, 0x00, 0x20, 0x5e db 0x60, 0x01, 0x20, 0x40, 0x50, 0x30, 0x60, 0x01 db 0x70, 0x54, 0x40, 0x58, 0x60, 0x02, 0x10, 0x20 db 0x80, 0x01, 0x70, 0x54, 0x40, 0x30, 0x58, 0x40 db 0x60, 0x04, 0x10, 0x30, 0x55, 0x30, 0x20, 0x5a db 0x20, 0x03, 0x10, 0x30, 0x55, 0x20, 0x60, 0x59 db 0x30, 0x80, 0x05, 0x20, 0x40, 0x53, 0x60, 0x00 db 0x30, 0x57, 0x70, 0x01, 0x80, 0x30, 0x70, 0x80 db 0x02, 0x20, 0x52, 0x30, 0x01, 0x60, 0x57, 0x60 db 0x00, 0x60, 0x40, 0x51, 0x40, 0x60, 0x01, 0x20 db 0x52, 0x60, 0x02, 0x70, 0x56, 0x60, 0x20, 0x55 db 0x70, 0x80, 0x20, 0x51, 0x70, 0x03, 0x80, 0x30 db 0x55, 0x40, 0x57, 0x40, 0x30, 0x50, 0x30, 0x80 db 0x04, 0x80, 0x30, 0x5f, 0x30, 0x80, 0x06, 0x80 db 0x30, 0x5d, 0x30, 0x80, 0x09, 0x60, 0x30, 0x59 db 0x30, 0x60, 0x0d, 0x60, 0x70, 0x30, 0x53, 0x30 db 0x70, 0x60, 0x07