diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-12 13:57:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-12 13:57:49 -0700 |
commit | 175380a436efa35bbfae2ee5e29e12e9ef86fbde (patch) | |
tree | 79a0348efd9ce552c3959ca59ce19de6e976b82a /src/core/ao.h | |
parent | be0a28ee7a6fbd98fc8113db8501bb791a112fa0 (diff) |
altos: Use alt_t for all Pascal-based altitude data
This allows alt_t to be overridden for systems using the MS5607/MS5611
sensors
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r-- | src/core/ao.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 200d4bc4..e559e876 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -272,11 +272,13 @@ ao_temp_to_dC(int16_t temp) __reentrant; * Convert between pressure in Pa and altitude in meters */ -int32_t +#include <ao_data.h> + +alt_t ao_pa_to_altitude(int32_t pa); int32_t -ao_altitude_to_pa(int32_t alt); +ao_altitude_to_pa(alt_t alt); #if HAS_DBG #include <ao_dbg.h> |