altos/kernel: Allow TeleGPS v2 to scale battery in telem
authorKeith Packard <keithp@keithp.com>
Mon, 1 May 2017 00:35:28 +0000 (17:35 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 1 May 2017 00:35:28 +0000 (17:35 -0700)
commitec963d358895ae46af63d2a6e9a32bdfb4d631c0
tree04d76f79a859d94eb30bfe5c86642c6aa4bf384f
parent34fda7bff76d59bcfbcec6a44275829c45e42189
altos/kernel: Allow TeleGPS v2 to scale battery in telem

TeleGPS v2 uses the STMF0 processor instead of the LPC11, which means
the ADC range is different. As the raw ADC value was getting sent to
represent battery voltage in the config packet, we need to scale that
for the different processor. This patch allows that to happen.

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