summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-05-18 20:04:57 -0700
committerKeith Packard <keithp@keithp.com>2012-05-18 20:19:01 -0700
commit5d8b9d524d6424ff98dcc4155fe8b8bd892b6d8f (patch)
tree98a4698176483f6a1e310f1f844576c806aea71a /src/core/ao.h
parent1541fc0bde71f503b1ae5757497e9e1e6d023111 (diff)
altos: Add conversion between Pa and meters
To be used with the MS5607 which generates data in calibrated units. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index 27b9c5c4..a2092cfe 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -282,6 +282,18 @@ ao_altitude_to_pres(int16_t alt) __reentrant;
int16_t
ao_temp_to_dC(int16_t temp) __reentrant;
+/*
+ * ao_convert_pa.c
+ *
+ * Convert between pressure in Pa and altitude in meters
+ */
+
+int32_t
+ao_pa_to_altitude(int32_t pa);
+
+int32_t
+ao_altitude_to_pa(int32_t alt);
+
#if HAS_DBG
#include <ao_dbg.h>
#endif