GainScheduledArmFeedforward

class GainScheduledArmFeedforward(val kCos: (Double) -> Double, val ticksToAngle: (Double) -> Double) : Feedforward

GainScheduledArmFeedforward is very similar to ArmFeedforward, but the multiplier is no longer constant. This allows you to change your feedforward depending on, say, the extension of a linear slide that rotates.

Parameters

kCos

function to get the multiplier at a given position

ticksToAngle

conversion function to convert input ticks into an angle (in radians)

Constructors

Link copied to clipboard
constructor(kCos: (Double) -> Double, ticksToAngle: (Double) -> Double)

Properties

Link copied to clipboard
val kCos: (Double) -> Double
Link copied to clipboard

Functions

Link copied to clipboard
open override fun compute(position: Double): Double