altos: Switch APRS altitude encoding computation to fixed point
authorKeith Packard <keithp@keithp.com>
Sat, 31 May 2014 00:24:51 +0000 (17:24 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 31 May 2014 00:32:52 +0000 (17:32 -0700)
commita7b0a5613c8e59b4c672b21f8d0890fd5cffd4dc
treec9e0d923055eb577dbfcf9b6c6e18d15e8e7a6c8
parent2d9842ee011139f5783a102ceb2b7f4c88b1a10f
altos: Switch APRS altitude encoding computation to fixed point

APRS altitude is logarithmically encoded, so this implementation
includes a fixed point log-base-2 function along with a bit of other
fixed point stuff. This eliminates all floating point from TeleGPS,
saving around 4kB of code space.

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