private static double HandleDeadband(double val, double deadband) { return (Math.Abs(val) > Math.Abs(deadband)) ? val : 0.0; }