summaryrefslogtreecommitdiff
path: root/altosui/AltosConfigFC.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-08-11 23:42:53 -0400
committerKeith Packard <keithp@keithp.com>2017-09-01 13:22:58 -0700
commit558a143315f0345b79cc4f22aa4b643fedcded9c (patch)
tree7a667970da65b40ab7136e7bb158b75cd0a49b79 /altosui/AltosConfigFC.java
parentc9a742db2497d07079f3d4bf383c6246cf80507c (diff)
altosui: Accel calibration UI
Provides a GUI for re-calibrating accelerometers Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigFC.java')
-rw-r--r--altosui/AltosConfigFC.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/altosui/AltosConfigFC.java b/altosui/AltosConfigFC.java
index beff71b7..5e2aa7f4 100644
--- a/altosui/AltosConfigFC.java
+++ b/altosui/AltosConfigFC.java
@@ -268,6 +268,13 @@ public class AltosConfigFC implements ActionListener {
if (serial_line != null)
serial_line.close();
}
+ else if (cmd.equals("Accel")) {
+ if (data.pad_orientation != AltosLib.MISSING) {
+ AltosUIAccelCal accel_ui = new AltosUIAccelCal(owner, serial_line, config_ui);
+ if (accel_ui != null)
+ accel_ui.doit();
+ }
+ }
} catch (InterruptedException ie) {
abort();
} catch (TimeoutException te) {