Skip to content

Commit

Permalink
Temporary Weeding Screw fix for Lizard issue 66 (#226)
Browse files Browse the repository at this point in the history
This PR fixes the weeding screw until
zauberzeug/lizard#66 is fixed. Like
#213 did it for the
tornado.
  • Loading branch information
pascalzauberzeug authored Nov 14, 2024
1 parent 7d3dacb commit 4a2aa34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions field_friend/hardware/z_axis_canopen_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ def __init__(self, robot_brain: rosys.hardware.RobotBrain, *,
{name}_motor = {expander.name + "." if motor_on_expander and expander else ""}CanOpenMotor({can.name}, {can_address})
{name}_end_t = {expander.name + "." if end_stops_on_expander and expander else ""}Input({end_t_pin})
{name}_end_t.inverted = {str(end_stops_inverted).lower()}
# TODO: remove when lizard issue 66 is fixed.
{name}_end_b.level = 0
{name}_end_t.active = false
{name}_end_b = {expander.name + "." if end_stops_on_expander and expander else ""}Input({end_b_pin})
{name}_end_b.inverted = {str(end_stops_inverted).lower()}
# TODO: remove when lizard issue 66 is fixed.
{name}_end_b.level = 0
{name}_end_b.active = false
{name} = {expander.name + "." if motor_on_expander and expander else ""}MotorAxis({name}_motor, {name + "_end_t" if reversed_direction else name + "_end_b"}, {name + "_end_b" if reversed_direction else name + "_end_t"})
''')
core_message_fields = [
Expand Down

0 comments on commit 4a2aa34

Please sign in to comment.