Ramping

interface Ramping

A collection of ramping functions and values for smoothing out deltas over time.

Author

Lucas Bubner, 2024

Since

3.2.0

Inheritors

Types

Link copied to clipboard
open class DcMotor : DcMotorImplEx, Ramping
Wrapper class for a DcMotor where all motor speed is passed through a configurable SmoothDamp function.
Link copied to clipboard
open class Supplier : Ramping
A Value that uses a SmoothDamp function to smooth out values over time.
Link copied to clipboard
open class Value : Ramping
SmoothDamp implementation for a double value.

Functions

Link copied to clipboard
abstract fun setMaxRampingDelta(maxDelta: Double): Ramping
Set the maximum change in units per second.
Link copied to clipboard
abstract fun setRampingEnabled(enabled: Boolean): Ramping
Set whether the ramping function is enabled.
Link copied to clipboard
Set the ramping parameters of the value.
Link copied to clipboard
abstract fun setRampingTime(@NonNull smoothTime: Measure<Time>): Ramping
Set the time it takes for the value to reach the target.