summaryrefslogtreecommitdiff
path: root/altosui/AltosUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-01-01 21:12:20 -0800
committerKeith Packard <keithp@keithp.com>2014-01-01 21:16:34 -0800
commitc35ea586b9e792c45b287924fd256928308d9a36 (patch)
tree83ceb8eda25fd45a00c8c15cf06488f4de17b66b /altosui/AltosUI.java
parentafc16e805145c3e9ab4ba948f9ab1d9aa2b27afb (diff)
altos: Flip acceleration data consistently for orientation changes
Must flip the acceleration calibration data using the same function as flipping the actual acceleration data or the calibration will no longer be valid after changing orientation. For the MMA655x, this means using 4095 in both places, rather than using 0x7fff for the calibration data changes and 4095 for the data value changes. For the MPU6000, this means using 0 in both places. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
0 files changed, 0 insertions, 0 deletions