We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 925f36d commit 88effb3Copy full SHA for 88effb3
1 file changed
public/templates/pivot-subsystem.java.hbs
@@ -176,6 +176,7 @@ public void periodic() {
176
@Override
177
public void simulationPeriodic() {
178
// Set input voltage from motor controller to simulation
179
+ // Note: This may need to be talonfx.getSimState().getMotorVoltage() as the input
180
pivotSim.setInput(dcMotor.getVoltage(dcMotor.getTorque(pivotSim.getCurrentDrawAmps()), pivotSim.getVelocityRadPerSec()));
181
182
// Update simulation by 20ms
0 commit comments