Skip to content

Commit

Permalink
Corrected Minor Servos SETUP strings
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe-carboni committed May 9, 2024
1 parent 3bb2808 commit 1a8db89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions simulators/minor_servos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ def plc_time(now=None):

configurations = {
'Primario': {'ID': 1},
'Gregoriano 1': {'ID': 11},
'Gregoriano 2': {'ID': 12},
'Gregoriano 3': {'ID': 13},
'Gregoriano 4': {'ID': 14},
'Gregoriano 5': {'ID': 15},
'Gregoriano 6': {'ID': 16},
'Gregoriano 7': {'ID': 17},
'Gregoriano 8': {'ID': 18},
'Gregoriano1': {'ID': 11},
'Gregoriano2': {'ID': 12},
'Gregoriano3': {'ID': 13},
'Gregoriano4': {'ID': 14},
'Gregoriano5': {'ID': 15},
'Gregoriano6': {'ID': 16},
'Gregoriano7': {'ID': 17},
'Gregoriano8': {'ID': 18},
'BWG1': {'ID': 21},
'BWG2': {'ID': 22},
'BWG3': {'ID': 23},
Expand Down
2 changes: 1 addition & 1 deletion tests/test_minor_servos.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_setup(self):
self.assertEqual(servo.operative_mode.value, 10) # SETUP mode

def test_setup_no_wait(self):
cmd = f'SETUP=Gregoriano 1{tail}'
cmd = f'SETUP=Gregoriano1{tail}'
for byte in cmd[:-1]:
self.assertTrue(self.system.parse(byte))
self.assertRegex(self.system.parse(cmd[-1]), f'{good}{tail}$')
Expand Down

0 comments on commit 1a8db89

Please sign in to comment.