Skip to content

Commit

Permalink
try to fix tests in CI
Browse files Browse the repository at this point in the history
They work locally, but not in CI
  • Loading branch information
bhall-ctre committed May 29, 2024
1 parent 1cbe9f1 commit 3bc6c1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/VelocityClosedLoop/tests/pyfrc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def wait_with_sim(time: float, fx: hardware.TalonFX, dcmotorsim: DCMotorSim):
feed_enable(0.1)
start_time += LOOP_PERIOD

print(fx.sim_state.motor_voltage)
print(fx.get_control_mode())

dcmotorsim.setInputVoltage(fx.sim_state.motor_voltage)
dcmotorsim.update(LOOP_PERIOD)
fx.sim_state.set_raw_rotor_position(radiansToRotations(dcmotorsim.getAngularPosition()))
Expand Down

0 comments on commit 3bc6c1b

Please sign in to comment.