Package xbot.common.simulation
Class MotorInternalPIDHelper
java.lang.Object
xbot.common.simulation.MotorInternalPIDHelper
Utility for running simple PID logic on a MockCANMotorController in simulation.
Applies PID output as motor power based on the motor’s current control mode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidupdateInternalPID(MockCANMotorController motor, PIDManager pidManager) static voidupdateInternalPIDWithGravity(MockCANMotorController motor, PIDManager pidManager, double gravityFeedForward) static voidupdateInternalPIDWithVelocity(MockCANMotorController motor, PIDManager pidManager, AngularVelocity targetVelocity)
-
Constructor Details
-
MotorInternalPIDHelper
public MotorInternalPIDHelper()
-
-
Method Details
-
updateInternalPID
-
updateInternalPIDWithGravity
public static void updateInternalPIDWithGravity(MockCANMotorController motor, PIDManager pidManager, double gravityFeedForward) -
updateInternalPIDWithVelocity
public static void updateInternalPIDWithVelocity(MockCANMotorController motor, PIDManager pidManager, AngularVelocity targetVelocity)
-