summaryrefslogtreecommitdiff
path: root/altosuilib/AltosGraphNew.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-05-28 15:28:29 -0700
committerKeith Packard <keithp@keithp.com>2017-05-28 15:28:29 -0700
commit9748d267b80e42ca52f9221900bb58602759a8d2 (patch)
treed8d50e8bf2b1d74f5313e5b413045beaccc6884a /altosuilib/AltosGraphNew.java
parent9a92ccbd3e5ce640875b614ff14d549cccc2036c (diff)
altosuilib: Set graph title to include product/serial/flight info
Better than "Flight" Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosGraphNew.java')
-rw-r--r--altosuilib/AltosGraphNew.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/altosuilib/AltosGraphNew.java b/altosuilib/AltosGraphNew.java
index c0afd652..08a33730 100644
--- a/altosuilib/AltosGraphNew.java
+++ b/altosuilib/AltosGraphNew.java
@@ -90,6 +90,9 @@ public class AltosGraphNew extends AltosUIGraphNew {
AltosUIAxis gyro_axis, orient_axis, mag_axis;
AltosUIAxis course_axis, dop_axis;
+ if (stats.serial != AltosLib.MISSING && stats.product != null && stats.flight != AltosLib.MISSING)
+ setName(String.format("%s %d flight %d\n", stats.product, stats.serial, stats.flight));
+
height_axis = newAxis("Height", AltosConvert.height, height_color);
pressure_axis = newAxis("Pressure", AltosConvert.pressure, pressure_color, 0);
speed_axis = newAxis("Speed", AltosConvert.speed, speed_color);