Skip to content

Commit

Permalink
Added test for toggling freedrive mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
androst committed Mar 26, 2024
1 parent 8d3d667 commit f603318
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/pyromocc/tests/pyromocc/test_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ def test_loop_stopj(self):
self.robot.stopj()
time.sleep(1/125.0)

def test_enable_disable_freedrive_mode(self):
self.robot.set_freedrive_mode(True)
time.sleep(1)
self.robot.set_freedrive_mode(False)

def test_robot_io_properties(self):
for _ in range(250):
current_time = self.robot.current_time()
Expand Down Expand Up @@ -163,7 +168,6 @@ def test_robot_io_configurable_outputs(self):
self.robot.io.configurable_outputs = [False, False, False, False, False, False, False, False]
assert all(self.robot.io.configurable_outputs == [False, False, False, False, False, False, False, False])


def test_robot_set_digital_outputs(self):
for i in range(8):
self.robot.set_digital_output(i, True)
Expand Down

0 comments on commit f603318

Please sign in to comment.