ArmFeedforward

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

ArmFeedforward is a simple implementation of Feedforward where the feedforward scales depending on the cosine of the arm angle. This is ideal for an arm with a fixed length.

Parameters

kCos

constant multiplier for output

ticksToAngle

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

Functions

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