altos: Use 5V reference data to correct accelerometer measurements.
authorKeith Packard <keithp@keithp.com>
Sat, 15 Jan 2011 20:26:53 +0000 (12:26 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 17 Jan 2011 05:52:50 +0000 (21:52 -0800)
commit4b71c4f4ed6cae23a7f4a2e7ae697da9ec614898
tree5f91a0aa96d4d61845c86362844901bcd6f21e89
parent2887fe7affc0706dbeb2f04df9a00a9b799903ed
altos: Use 5V reference data to correct accelerometer measurements.

When the 3.3V and 5V values shift relative to each other (usually due
to changes in power consumption), the measured acceleration will
appear to shift. This patch converts the 3.3V referenced acceleration
value into a 5V referenced acceleration, eliminating this error.

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