From: Keith Packard Date: Sun, 24 May 2009 04:16:22 +0000 (-0700) Subject: Avoid 16-bit overflow in velocity computation. X-Git-Tag: 0.5~69 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d6f5a0689023546464a71561f53fa2c943077c88;hp=d6f5a0689023546464a71561f53fa2c943077c88 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 ---