Skip to content

Commit

Permalink
feat(hepa-uv): add HepaUVInfo CAN message to get serial from hepa. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 authored Feb 1, 2024
1 parent 10be941 commit fcfd56e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions hardware/opentrons_hardware/firmware_bindings/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ class MessageId(int, Enum):
instrument_info_request = 0x306
pipette_info_response = 0x307
gripper_info_response = 0x308
hepauv_info_response = 0x309
set_serial_number = 0x30A
get_motor_usage_request = 0x30B
get_motor_usage_response = 0x30C
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -898,3 +898,12 @@ class GetMotorUsageResponse(BaseMessage):
message_id: Literal[
MessageId.get_motor_usage_response
] = MessageId.get_motor_usage_response


@dataclass
class HepaUVInfoResponse(BaseMessage): # noqa: D101
payload: payloads.HepaUVInfoResponsePayload
payload_type: Type[
payloads.HepaUVInfoResponsePayload
] = payloads.HepaUVInfoResponsePayload
message_id: Literal[MessageId.hepauv_info_response] = MessageId.hepauv_info_response
Original file line number Diff line number Diff line change
Expand Up @@ -627,3 +627,11 @@ def build(cls, data: bytes) -> "GetMotorUsageResponsePayload":
return inst

usage_elements: List[MotorUsageTypeField]


@dataclass(eq=False)
class HepaUVInfoResponsePayload(EmptyPayload):
"""A response carrying data about an attached gripper."""

model: utils.UInt16Field
serial: SerialDataCodeField

0 comments on commit fcfd56e

Please sign in to comment.