X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosSpeed.java;h=6fb624fb664bbab32511848765e54dccb566f77a;hb=cef4e3ee95037050ae859fb2fdc0a57373764bd8;hp=af63ed17ebbefb79cbaf81f6c3ca51c2da98dabb;hpb=e5a55dbf265354e7c94be3e2be53c2d5c8fba056;p=fw%2Faltos diff --git a/altoslib/AltosSpeed.java b/altoslib/AltosSpeed.java index af63ed17..6fb624fb 100644 --- a/altoslib/AltosSpeed.java +++ b/altoslib/AltosSpeed.java @@ -15,29 +15,29 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.AltosLib; +package org.altusmetrum.altoslib_1; public class AltosSpeed extends AltosUnits { public double value(double v) { if (AltosConvert.imperial_units) - return AltosConvert.meters_to_feet(v); + return AltosConvert.meters_to_mph(v); return v; } public String show_units() { if (AltosConvert.imperial_units) - return "ft/s"; + return "mph"; return "m/s"; } public String say_units() { if (AltosConvert.imperial_units) - return "feet per second"; + return "miles per hour"; return "meters per second"; } - int show_fraction(int width) { + public int show_fraction(int width) { return width / 9; } } \ No newline at end of file