From 2f46a8be39bc952846917d8f30ffffe161f3a3ec Mon Sep 17 00:00:00 2001 From: Dalton Smith Date: Mon, 21 Oct 2024 18:28:30 -0400 Subject: [PATCH] More python fixes --- python/MotionMagic/tests/pyfrc_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/MotionMagic/tests/pyfrc_test.py b/python/MotionMagic/tests/pyfrc_test.py index e9abef2f..5fcd695d 100644 --- a/python/MotionMagic/tests/pyfrc_test.py +++ b/python/MotionMagic/tests/pyfrc_test.py @@ -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()))