ProfiledPingu

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

Data class representing a ProfiledPingu with PID controller parameters and profile constraints.

Constructors

Link copied to clipboard
constructor(p: Double, i: Double, d: Double, v: Double? = null, s: Double? = null, g: Double? = null, 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
val profile: TrapezoidProfile.Constraints

Constraints for the trapezoidal profile.

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.