From 9877f6b880a0e89fbfbf1a39ded94bdc1891f3d9 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 28 Dec 2013 10:17:37 -0800 Subject: [PATCH] altosui: Switch Graph to AltosOrient type The graph was using a private class for orient type, use the altoslib one Signed-off-by: Keith Packard --- altosui/AltosGraph.java | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/altosui/AltosGraph.java b/altosui/AltosGraph.java index ef26f4f9..42334e31 100644 --- a/altosui/AltosGraph.java +++ b/altosui/AltosGraph.java @@ -150,29 +150,6 @@ class AltosGyroUnits extends AltosUnits { } } -class AltosOrientUnits extends AltosUnits { - - public double value(double p, boolean imperial_units) { - return p; - } - - public double inverse(double p, boolean imperial_units) { - return p; - } - - public String show_units(boolean imperial_units) { - return "°"; - } - - public String say_units(boolean imperial_units) { - return "degrees"; - } - - public int show_fraction(int width, boolean imperial_units) { - return 1; - } -} - class AltosMagUnits extends AltosUnits { public double value(double p, boolean imperial_units) { @@ -231,7 +208,7 @@ public class AltosGraph extends AltosUIGraph { static AltosNsat nsat_units = new AltosNsat(); static AltosDbm dbm_units = new AltosDbm(); static AltosGyroUnits gyro_units = new AltosGyroUnits(); - static AltosOrientUnits orient_units = new AltosOrientUnits(); + static AltosOrient orient_units = new AltosOrient(); static AltosMagUnits mag_units = new AltosMagUnits(); AltosUIAxis height_axis, speed_axis, accel_axis, voltage_axis, temperature_axis, nsat_axis, dbm_axis; -- 2.30.2