Added continous detection algo

Instead of having ranges for detection value we will have an
equation that will determine what our correction should be. This
way we elimate over and under compensation.