summaryrefslogtreecommitdiff
path: root/altosui/AltosIdleMonitorUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-03-27 21:49:58 -0700
committerKeith Packard <keithp@keithp.com>2012-03-27 21:49:58 -0700
commit7a9baabaf33db5e30eb4ef8f923a4fd96fd28fb4 (patch)
treeee8182f04466077b961784bfb426ea404a1ff2de /altosui/AltosIdleMonitorUI.java
parent2f19f9a0eaba22789fdc07a52849e8aaf6fe4695 (diff)
altosui: Mark data 'Age' in monitor idle UI too
Just like with the flight monitor UI, it's nice to know how old the data in the monitor idle UI is, in case the data link to the TM isn't reliable. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosIdleMonitorUI.java')
-rw-r--r--altosui/AltosIdleMonitorUI.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/altosui/AltosIdleMonitorUI.java b/altosui/AltosIdleMonitorUI.java
index a5f41e25..dbac2d33 100644
--- a/altosui/AltosIdleMonitorUI.java
+++ b/altosui/AltosIdleMonitorUI.java
@@ -293,7 +293,10 @@ public class AltosIdleMonitorUI extends AltosFrame implements AltosFlightDisplay
set_font();
}
+ AltosFlightStatusUpdate status_update;
+
public void show(AltosState state, int crc_errors) {
+ status_update.saved_state = state;
try {
pad.show(state, crc_errors);
flightStatus.show(state, crc_errors);
@@ -399,6 +402,10 @@ public class AltosIdleMonitorUI extends AltosFrame implements AltosFlightDisplay
thread = new AltosIdleMonitor(this, device, remote);
+ status_update = new AltosFlightStatusUpdate(flightStatus);
+
+ new javax.swing.Timer(100, status_update).start();
+
thread.start();
}
}