X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao.h;fp=src%2Fcore%2Fao.h;h=a2092cfe45ab923a58d551a3c9384125fbaa3c19;hb=5d8b9d524d6424ff98dcc4155fe8b8bd892b6d8f;hp=27b9c5c469717112161a72ecdb498a4098bb6ed8;hpb=1541fc0bde71f503b1ae5757497e9e1e6d023111;p=fw%2Faltos 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 #endif