Skip to Content
VectorLib

DriveCurve

vectorlib::DriveCurve — fields, methods, parameters and return types.


pub trait DriveCurve

A function applied to joystick input during driver control.

Implement this to make a custom curve, exactly like subclassing lemlib::DriveCurve.

View source

Methods

Prop

Type

curve

fn curve(&mut self, input: f32) -> f32

Process an input in [-127, 127] and return an output in [-127, 127].

Parameters

Prop

Type

Returns

f32

View source

On this page