mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-10-01 22:30:32 +03:00
add astro functions
This commit is contained in:
@@ -37,7 +37,7 @@ static int32_t float_to_q31(float x){
|
||||
}
|
||||
|
||||
// Convert Q1.31 to float
|
||||
static float q31_to_float(int32_t q){
|
||||
TRUE_INLINE float q31_to_float(int32_t q){
|
||||
return (float)q / Q31_BASE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user