altoslib: Avoid sending negative accel cal values to flight computer
authorKeith Packard <keithp@keithp.com>
Thu, 29 Oct 2020 18:37:03 +0000 (11:37 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Nov 2020 05:40:21 +0000 (21:40 -0800)
commit4358d83ba96b072cabd344e287fa77005968690f
tree5d112545d06aab00820f0c1087a51dff9aef9a42
parentd1a2932e080041cfe107e00e7b23213026d1fb81
altoslib: Avoid sending negative accel cal values to flight computer

Pre-1.9.7 firmware does not handle negative values. Instead, send
large positive values which will wrap around to negative values inside
the flight computer.

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