projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Use pyro voltage to check igniters
[fw/altos]
/
src
/
kernel
/
ao_kalman.c
diff --git
a/src/kernel/ao_kalman.c
b/src/kernel/ao_kalman.c
index cdf64bec9052e106fa43cabdbb3015955c9645d2..5f32eb7275de8357d8bb50a80680644dee4817e9 100644
(file)
--- a/
src/kernel/ao_kalman.c
+++ b/
src/kernel/ao_kalman.c
@@
-314,9
+314,9
@@
ao_kalman(void)
ao_kalman_correct_accel();
#endif
#endif
ao_kalman_correct_accel();
#endif
#endif
- ao_height = from_fix(ao_k_height);
- ao_speed = from_fix(ao_k_speed);
- ao_accel = from_fix(ao_k_accel);
+ ao_height =
(ao_v_t)
from_fix(ao_k_height);
+ ao_speed =
(ao_v_t)
from_fix(ao_k_speed);
+ ao_accel =
(ao_v_t)
from_fix(ao_k_accel);
if (ao_height > ao_max_height)
ao_max_height = ao_height;
#if HAS_BARO
if (ao_height > ao_max_height)
ao_max_height = ao_height;
#if HAS_BARO