Replace NT timestamp with latency

This commit is contained in:
Banks Troutman
2019-12-15 00:42:49 -05:00
parent 0fe8b6cb2b
commit 0446d3e546
2 changed files with 10 additions and 4 deletions

View File

@@ -24,4 +24,9 @@ public class MathHandler {
public static double toSlope(Number angle){
return FastMath.atan(FastMath.toRadians(angle.doubleValue() - 90));
}
public static double roundTo(double value, int to) {
double toMult = Math.pow(10, to);
return (double)Math.round(value * toMult) / toMult;
}
}