Skip to content

Commit 0442c3e

Browse files
remove quickfix for issue 66
1 parent 2aa18cf commit 0442c3e

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

rosys/hardware/battery_control.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ def __init__(self, robot_brain: RobotBrain, *,
1919
{self.name}_reset = {expander.name + "." if expander else ""}Output({reset_pin})
2020
{self.name}_status = {expander.name + "." if expander else ""}Input({status_pin})
2121
''')
22-
if expander:
23-
lizard_code += remove_indentation(f'''
24-
# TODO: remove when lizard issue 66 is fixed.
25-
{self.name}_status.level = 0
26-
{self.name}_status.active = false
27-
''')
2822
core_message_fields = [f'{self.name}_status.level']
2923
super().__init__(robot_brain=robot_brain, lizard_code=lizard_code, core_message_fields=core_message_fields)
3024

rosys/hardware/bumper.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import abc
22

33
from ..event import Event
4-
from ..helpers import remove_indentation
54
from .estop import EStop
65
from .expander import ExpanderHardware
76
from .module import Module, ModuleHardware, ModuleSimulation
@@ -38,12 +37,6 @@ def __init__(self, robot_brain: RobotBrain, *,
3837
lizard_code = ''
3938
for pin, number in pins.items():
4039
lizard_code += f'{name}_{pin} = {expander.name + "." if expander else ""}Input({number})\n'
41-
if expander:
42-
lizard_code += remove_indentation(f'''
43-
# TODO: remove when lizard issue 66 is fixed.
44-
{name}_{pin}.level = 0
45-
{name}_{pin}.active = false
46-
''')
4740
core_message_fields = [f'{name}_{pin}.level' for pin in pins]
4841
super().__init__(robot_brain=robot_brain,
4942
lizard_code=lizard_code,

0 commit comments

Comments
 (0)