diff options
author | Keith Packard <keithp@keithp.com> | 2017-08-11 23:42:53 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-08-12 18:28:17 -0400 |
commit | 5de9496b103b495b7ff77c84e1047d207bc4259c (patch) | |
tree | f74f2bf436efc9513666cfa10eb997ad1fdbdad6 /altosui/AltosConfigFC.java | |
parent | 43e2275250d9c91560a770942f3c06a8f74ed501 (diff) |
altosui: Initial accel calibration UIaccel-cal-ui
Almost working, needs further tweaking.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigFC.java')
-rw-r--r-- | altosui/AltosConfigFC.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/altosui/AltosConfigFC.java b/altosui/AltosConfigFC.java index beff71b7..db998278 100644 --- a/altosui/AltosConfigFC.java +++ b/altosui/AltosConfigFC.java @@ -268,6 +268,14 @@ 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); + if (accel_ui != null) + if (accel_ui.doit()) + config_ui.set_dirty(); + } + } } catch (InterruptedException ie) { abort(); } catch (TimeoutException te) { |