Skip to content

Commit 88effb3

Browse files
Update pivot-subsystem.java.hbs
1 parent 925f36d commit 88effb3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

public/templates/pivot-subsystem.java.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public void periodic() {
176176
@Override
177177
public void simulationPeriodic() {
178178
// Set input voltage from motor controller to simulation
179+
// Note: This may need to be talonfx.getSimState().getMotorVoltage() as the input
179180
pivotSim.setInput(dcMotor.getVoltage(dcMotor.getTorque(pivotSim.getCurrentDrawAmps()), pivotSim.getVelocityRadPerSec()));
180181

181182
// Update simulation by 20ms

0 commit comments

Comments
 (0)