projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Add telerepeat-v1.0
[fw/altos]
/
src
/
kernel
/
ao.h
diff --git
a/src/kernel/ao.h
b/src/kernel/ao.h
index a225bc4aca9d81eac96e3f77bc04bc92f5323039..ad5bbf8e76ae152fefaed06eed6758963b8ec0da 100644
(file)
--- a/
src/kernel/ao.h
+++ b/
src/kernel/ao.h
@@
-278,15
+278,17
@@
ao_report_init(void);
* Given raw data, convert to SI units
*/
* Given raw data, convert to SI units
*/
+#if HAS_BARO
/* pressure from the sensor to altitude in meters */
/* pressure from the sensor to altitude in meters */
-
int16
_t
-ao_pres_to_altitude(
int16
_t pres) __reentrant;
+
alt
_t
+ao_pres_to_altitude(
pres
_t pres) __reentrant;
-
int16
_t
-ao_altitude_to_pres(
int16
_t alt) __reentrant;
+
pres
_t
+ao_altitude_to_pres(
alt
_t alt) __reentrant;
int16_t
ao_temp_to_dC(int16_t temp) __reentrant;
int16_t
ao_temp_to_dC(int16_t temp) __reentrant;
+#endif
/*
* ao_convert_pa.c
/*
* ao_convert_pa.c
@@
-296,11
+298,13
@@
ao_temp_to_dC(int16_t temp) __reentrant;
#include <ao_data.h>
#include <ao_data.h>
+#if HAS_BARO
alt_t
alt_t
-ao_pa_to_altitude(
int32
_t pa);
+ao_pa_to_altitude(
pres
_t pa);
int32_t
ao_altitude_to_pa(alt_t alt);
int32_t
ao_altitude_to_pa(alt_t alt);
+#endif
#if HAS_DBG
#include <ao_dbg.h>
#if HAS_DBG
#include <ao_dbg.h>