calculateDeadzone

fun calculateDeadzone(input: Double, deadzoneValue: Double): Double

Deadzones an input so it can not be below a certain value. This is a weighted deadzone.

Return

The deadzoned value.

Parameters

input

The input you want to deadzone.

deadzoneValue

The minimum value you will allow.