#include <JoystickUtil.h>
|
static float | deadbandMap (float x, float deadband, float in_min, float in_max, float out_min, float out_max) |
| Maps a joystick input value with a deadband.
|
◆ deadbandMap()
float JoystickUtil::deadbandMap |
( |
float | x, |
|
|
float | deadband, |
|
|
float | in_min, |
|
|
float | in_max, |
|
|
float | out_min, |
|
|
float | out_max ) |
|
inlinestatic |
Maps a joystick input value with a deadband.
- Parameters
-
x | The joystick input value. |
deadband | The deadband value. |
in_min | The minimum of the input range. |
in_max | The maximum of the input range. |
out_min | The minimum of the output range. |
out_max | The maximum of the output range. |
- Returns
- The mapped joystick value with deadband applied.
The documentation for this class was generated from the following file: