diff options
author | Keith Packard <keithp@keithp.com> | 2012-12-09 14:32:35 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-09 14:32:35 -0800 |
commit | 24948ea1d41f2a7c96ac09e35d1250909e5726ae (patch) | |
tree | 09ede184884be86bb62bc34272807705cffa81e7 /src/micropeak | |
parent | 285fccfa82d89b0decc3b44f413eef9d0c8f1e63 (diff) |
altos: Store altitude in 32-bits for MicroPeak
Needs all 32 bits to store .1 meter resolution
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/micropeak')
-rw-r--r-- | src/micropeak/ao_pins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h index 257b8694..187b2544 100644 --- a/src/micropeak/ao_pins.h +++ b/src/micropeak/ao_pins.h @@ -57,6 +57,7 @@ #define I2C_PIN_SDA PINB0 #define AO_CONST_ATTRIB PROGMEM +typedef int32_t alt_t; #define FETCH_ALT(o) ((alt_t) pgm_read_dword(&altitude_table[o])) #define AO_ALT_VALUE(x) ((x) * 10) |