ProfiledPingu

data class ProfiledPingu(var p: Double, var i: Double, var d: Double, var v: Double = 0.0, var s: Double = 0.0, var g: Double = 0.0, val profile: TrapezoidProfile.Constraints)

Data class representing a ProfiledPingu with PID controller parameters and TrapezoidProfile.Constraints for motion profiling.

Constructors

Link copied to clipboard
constructor(p: Double, i: Double, d: Double, v: Double = 0.0, s: Double = 0.0, g: Double = 0.0, profile: TrapezoidProfile.Constraints)

Properties

Link copied to clipboard
var d: Double

Derivative gain.

Link copied to clipboard
var g: Double

Optional gravity feedforward term.

Link copied to clipboard
var i: Double

Integral gain.

Link copied to clipboard
var p: Double

Proportional gain.

Link copied to clipboard

Gets a Pingu instance with the current PID and feedforward parameters.

Link copied to clipboard
val profile: TrapezoidProfile.Constraints

Constraints for the TrapezoidProfile.

Link copied to clipboard
val profiledPIDController: ProfiledPIDController

Gets the ProfiledPIDController instance with the current PID parameters and profile constraints.

Link copied to clipboard
var s: Double

Optional static feedforward term.

Link copied to clipboard
var v: Double

Optional velocity feedforward term.

Functions

Link copied to clipboard
fun setD(d: LoggedNetworkNumber)

Sets the derivative gain from a LoggedNetworkNumber.

Link copied to clipboard
fun setG(g: LoggedNetworkNumber)

Sets the gravity feedforward term from a LoggedNetworkNumber.

Link copied to clipboard
fun setI(i: LoggedNetworkNumber)

Sets the integral gain from a LoggedNetworkNumber.

Link copied to clipboard
fun setP(p: LoggedNetworkNumber)

Sets the proportional gain from a LoggedNetworkNumber.

Link copied to clipboard
fun setPID(profiledPIDController: ProfiledPIDController)

Sets the PID parameters from the given ProfiledPIDController instance.

Link copied to clipboard
fun setS(s: LoggedNetworkNumber)

Sets the static feedforward term from a LoggedNetworkNumber.

Link copied to clipboard
fun setV(v: LoggedNetworkNumber)

Sets the velocity feedforward term from a LoggedNetworkNumber.