diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-23 21:16:22 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-05-23 21:16:22 -0700 |
commit | d6f5a0689023546464a71561f53fa2c943077c88 (patch) | |
tree | 48fd63d1c4c381b6ec574575eb147473ec2ad424 /ao_flight_test.c | |
parent | aa6d87aeb616dd62f0debaded297232022b4f8bd (diff) |
Avoid 16-bit overflow in velocity computation.
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>
Diffstat (limited to 'ao_flight_test.c')
0 files changed, 0 insertions, 0 deletions