altos: Fix distance/bearing computations. Deal with large values
authorKeith Packard <keithp@keithp.com>
Thu, 27 Oct 2011 07:35:35 +0000 (00:35 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 27 Oct 2011 07:35:35 +0000 (00:35 -0700)
commitc7e14a2750d437e8b77d68a944a0711e7a0c882b
tree644b086f08aced1df0b8eb56dfff737cd07b8473
parentda330c5975b9f565d059ef8084dfdacc20f34246
altos: Fix distance/bearing computations. Deal with large values

Lots of little math errors dealing with large distances; easily tested
as the GPS currently reports lat 24 lon 121, which is a long ways from
Portland.

Now reports distances in km when large, otherwise in m.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/product/ao_terraui.c