From 129217cf2b17cc261e2846f0814e57e6d1204f89 Mon Sep 17 00:00:00 2001 From: Sampo Niskanen Date: Wed, 7 Jan 2015 17:37:40 +0200 Subject: [PATCH] Add degrees/sec as a roll unit --- core/src/net/sf/openrocket/unit/UnitGroup.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/net/sf/openrocket/unit/UnitGroup.java b/core/src/net/sf/openrocket/unit/UnitGroup.java index 1acf0a6ae..ae1a895b9 100644 --- a/core/src/net/sf/openrocket/unit/UnitGroup.java +++ b/core/src/net/sf/openrocket/unit/UnitGroup.java @@ -278,6 +278,7 @@ public class UnitGroup { UNITS_ROLL = new UnitGroup(); UNITS_ROLL.addUnit(new GeneralUnit(1, "rad/s")); + UNITS_ROLL.addUnit(new GeneralUnit(Math.PI / 180, DEGREE + "/s")); UNITS_ROLL.addUnit(new GeneralUnit(2 * Math.PI, "r/s")); UNITS_ROLL.addUnit(new GeneralUnit(2 * Math.PI / 60, "rpm")); UNITS_ROLL.setDefaultUnit(1);