projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e9584e8
)
Initialize ao_min_vel with |ao_flight_vel|
author
Keith Packard
<keithp@keithp.com>
Mon, 11 May 2009 06:00:06 +0000
(23:00 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 11 May 2009 06:00:06 +0000
(23:00 -0700)
As ao_min_vel is stored as an absolute value, it's important to preserve
that invariant, even though we don't expect ao_flight_vel to be negative at
coast.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao_flight.c
patch
|
blob
|
history
diff --git
a/ao_flight.c
b/ao_flight.c
index f4b5279b64cf1edecc57d88986c5ebb2df89807a..91953975203c830fa76814e1cd02fb35fc33a68b 100644
(file)
--- a/
ao_flight.c
+++ b/
ao_flight.c
@@
-312,7
+312,7
@@
ao_flight(void)
/* set min velocity to current velocity for
* apogee detect
*/
- ao_min_vel = a
o_flight_vel
;
+ ao_min_vel = a
bs(ao_flight_vel)
;
ao_flight_state = ao_flight_apogee;
ao_wakeup(DATA_TO_XDATA(&ao_flight_state));
}