Avoid 16-bit overflow in velocity computation.
authorKeith Packard <keithp@keithp.com>
Sun, 24 May 2009 04:16:22 +0000 (21:16 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 24 May 2009 04:16:22 +0000 (21:16 -0700)
Adding two 16 bit integers together can wrap around to negative numbers,
this resulted in velocity values which never decreased, making the switch
from coast to apogee state not occur.

Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found