setAxisInterpolator

Sets the interpolation formula to be applied on an axis.

An axis interpolator affects the values sent to the connected drone when moving the gamepad axis. It maps the physical linear position of the axis to another value by applying a predefined formula.

Note that the current interpolator set on an axis also affects the values sent through axis event listeners for grabbed inputs.

Parameters

droneModel

drone model for which the axis interpolator must be applied

axis

axis to set the interpolator for

interpolator

interpolator to set

See also