aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/UnitsConverter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/UnitsConverter.java')
-rw-r--r--src/org/traccar/helper/UnitsConverter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/helper/UnitsConverter.java b/src/org/traccar/helper/UnitsConverter.java
index 4bc7348db..70916727e 100644
--- a/src/org/traccar/helper/UnitsConverter.java
+++ b/src/org/traccar/helper/UnitsConverter.java
@@ -45,6 +45,10 @@ public final class UnitsConverter {
return value * KNOTS_TO_MPS_RATIO;
}
+ public static double mpsFromKnots(double value) {
+ return value / KNOTS_TO_MPS_RATIO;
+ }
+
public static double knotsFromCps(double value) { // cm/s
return value * KNOTS_TO_CPS_RATIO;
}