altoslib: Keep config data accel cal in antenna up form.
authorKeith Packard <keithp@keithp.com>
Thu, 26 Apr 2018 23:30:54 +0000 (16:30 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 27 Apr 2018 02:24:21 +0000 (19:24 -0700)
commiteee9f6128da146b0e9c711d49b2a3eb49a95aaf3
treebff501a7b7c2161277628ee948b4b4bfb4cb89cf
parentb3474fb33a58e78b3b8f36958dd44768e49f3edc
altoslib: Keep config data accel cal in antenna up form.

Instead of letting the accel cal data live in whatever form it was
fetched in, keep it in antenna up form and provide it in whatever
orientation is necessary.

This fixes bugs in changing pad configuration where the accel cal values
from the old orientation would get used in the new orientation and
wreck them.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosAccelCal.java
altoslib/AltosCalData.java
altoslib/AltosConfigData.java
altoslib/AltosLib.java