Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/definitions.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 | 4f9f477bb452 |
children | 06c4899ddb4b |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/definitions.asm Sat Jan 01 01:57:50 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/definitions.asm Wed Dec 29 01:41:13 2010 +0100 @@ -73,6 +73,17 @@ CONFIG LVP = OFF ;Single-Supply ICSP disabled CONFIG STVREN = OFF ;Stack full/underflow will not cause Reset + CBLOCK 0x800 + c_code_data_stack:.64 ; Reserve space for C-code data space. Eg.when calling log. + endc + + CBLOCK 0x3F0 + pressureSum:2 ; Stabilize surface presure by a long averaging window [mbar] + pressureCount ; Count of pressure values. + pressureAvg:2 ; save averaged pressure x16, for altimeter_menu + pressureRef:2 ; Pressure at sea level [mbar] + altitude:2 ; Last computed altitude [m] + ENDC ;Variable definitions ; arrays are in hex size!! 20 = .032