added ramp function for deadzone identification