Skip to content

Commit

Permalink
More python fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daltzctr committed Oct 21, 2024
1 parent 3459bb8 commit 2f46a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/MotionMagic/tests/pyfrc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_position_closed_loop(control, robot: MyRobot):
with control.run_robot():
talonfx = robot.talonfx
gearbox = DCMotor.krakenX60FOC(1)
motorsim = DCMotorSim.DCMotorSim(LinearSystemId.DCMotorSystem(gearbox, 0.01, 1.0), gearbox)
motorsim = DCMotorSim(LinearSystemId.DCMotorSystem(gearbox, 0.01, 1.0), gearbox)
pos = talonfx.get_position()

talonfx.sim_state.set_raw_rotor_position(radiansToRotations(motorsim.getAngularPosition()))
Expand Down

0 comments on commit 2f46a8b

Please sign in to comment.