summaryrefslogtreecommitdiff
path: root/altosui/AltosInfoTable.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-28 10:15:26 -0800
committerKeith Packard <keithp@keithp.com>2013-12-28 10:15:26 -0800
commitbbc4940730e6b431f1b9ccd9bbaf9faa0ffb2b1f (patch)
tree851213772ef88cfef4573912575704268b076add /altosui/AltosInfoTable.java
parent053d092b3dca4ebb98e97ec0fe24f5f5e1c31f88 (diff)
altosui: Add orient to ascent and info table views
This adds 'tilt angle' to both ascent and info table views Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosInfoTable.java')
-rw-r--r--altosui/AltosInfoTable.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/altosui/AltosInfoTable.java b/altosui/AltosInfoTable.java
index cf0e4c56..7ba62d01 100644
--- a/altosui/AltosInfoTable.java
+++ b/altosui/AltosInfoTable.java
@@ -125,6 +125,10 @@ public class AltosInfoTable extends JTable {
info_add_row(0, "Speed", "%8.1f m/s", state.speed());
if (state.max_speed() != AltosLib.MISSING)
info_add_row(0, "Max Speed", "%8.1f m/s", state.max_speed());
+ if (state.orient() != AltosLib.MISSING)
+ info_add_row(0, "Tilt", "%4.0f °", state.orient());
+ if (state.max_orient() != AltosLib.MISSING)
+ info_add_row(0, "Max Tilt", "%4.0f °", state.max_orient());
if (state.temperature != AltosLib.MISSING)
info_add_row(0, "Temperature", "%9.2f °C", state.temperature);
if (state.battery_voltage != AltosLib.MISSING)