Skip to content

Commit

Permalink
feat(api,hardware,robot-server): enable firmware updates for the HEPA…
Browse files Browse the repository at this point in the history
…/UV. (#14386)

* feat(api,hardware,robot-server): enable firmware updates for the HEPA/UV.

* add hepa-uv to update_fw.py script
  • Loading branch information
vegano1 authored Jan 31, 2024
1 parent 207964f commit 5e4d97a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/src/opentrons/hardware_control/backends/ot3utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
SubSystem.pipette_left: NodeId.pipette_left,
SubSystem.pipette_right: NodeId.pipette_right,
SubSystem.gripper: NodeId.gripper,
SubSystem.hepa_uv: NodeId.hepa_uv,
}

NODEID_SUBSYSTEM = {node: subsystem for subsystem, node in SUBSYSTEM_NODEID.items()}
Expand Down
1 change: 1 addition & 0 deletions api/src/opentrons/hardware_control/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ class SubSystem(enum.Enum):
gripper = 5
rear_panel = 6
motor_controller_board = 7
hepa_uv = 8

def __str__(self) -> str:
return self.name
Expand Down
3 changes: 3 additions & 0 deletions hardware/opentrons_hardware/firmware_update/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
NodeId.gantry_x: "c1",
NodeId.gantry_y: "c1",
NodeId.gripper: "c1",
NodeId.hepa_uv: "b1",
USBTarget.rear_panel: "b1",
}

Expand All @@ -50,6 +51,7 @@ class FirmwareUpdateType(Enum):
pipettes_multi = 5
pipettes_96 = 6
rear_panel = 7
hepa_uv = 8
unknown = -1
unknown_no_subtype = -2
unknown_no_revision = -3
Expand Down Expand Up @@ -89,6 +91,7 @@ def from_node(cls, node: NodeId) -> "FirmwareUpdateType":
NodeId.gantry_x: cls.gantry_x,
NodeId.gantry_y: cls.gantry_y,
NodeId.gripper: cls.gripper,
NodeId.hepa_uv: cls.hepa_uv,
}
return lookup[node.application_for()]

Expand Down
1 change: 1 addition & 0 deletions hardware/opentrons_hardware/scripts/update_fw.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"pipette-left": NodeId.pipette_left,
"pipette-right": NodeId.pipette_right,
"gripper": NodeId.gripper,
"hepa-uv": NodeId.hepa_uv,
"rear-panel": USBTarget.rear_panel,
}

Expand Down
3 changes: 3 additions & 0 deletions robot-server/robot_server/subsystems/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class SubSystem(enum.Enum):
pipette_right = "pipette_right"
gripper = "gripper"
rear_panel = "rear_panel"
hepa_uv = "hepa_uv"
motor_controller_board = "motor_controller_board"

@classmethod
Expand All @@ -46,6 +47,7 @@ def to_hw(self) -> HWSubSystem:
HWSubSystem.pipette_right: SubSystem.pipette_right,
HWSubSystem.rear_panel: SubSystem.rear_panel,
HWSubSystem.gripper: SubSystem.gripper,
HWSubSystem.hepa_uv: SubSystem.hepa_uv,
HWSubSystem.motor_controller_board: SubSystem.motor_controller_board,
}

Expand All @@ -57,6 +59,7 @@ def to_hw(self) -> HWSubSystem:
SubSystem.pipette_right: HWSubSystem.pipette_right,
SubSystem.rear_panel: HWSubSystem.rear_panel,
SubSystem.gripper: HWSubSystem.gripper,
SubSystem.hepa_uv: HWSubSystem.hepa_uv,
SubSystem.motor_controller_board: HWSubSystem.motor_controller_board,
}

Expand Down

0 comments on commit 5e4d97a

Please sign in to comment.