Fixed problem with pidcount not allowing a negative setpoint. Problem was caused by the input range being set to Double.MIN_VALUE, Double.MAX_VALUE rather than -Double.MAX_VALUE, Double.MAX_VALUE.