Skip to content

Commit

Permalink
Revert "feat(can): add getMoveStatus request & response (#8688)" (#8710)
Browse files Browse the repository at this point in the history
This reverts commit 4f50044.
  • Loading branch information
ahiuchingau authored Nov 11, 2021
1 parent 8d7d47d commit bfbab43
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
2 changes: 0 additions & 2 deletions hardware/opentrons_hardware/drivers/can_bus/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ class MessageId(int, Enum):
clear_all_move_groups_request = 0x19
move_group_completed = 0x1A
move_completed = 0x13
get_move_status_request = 0x30
get_move_status_response = 0x31
Original file line number Diff line number Diff line change
Expand Up @@ -178,21 +178,3 @@ class MoveCompleted: # noqa: D101
payload: payloads.MoveCompletedPayload
payload_type: Type[BinarySerializable] = payloads.MoveCompletedPayload
message_id: Literal[MessageId.move_completed] = MessageId.move_completed


@dataclass
class GetMoveStatusRequest: # noqa: D101
payload: payloads.EmptyPayload
payload_type: Type[BinarySerializable] = payloads.EmptyPayload
message_id: Literal[
MessageId.get_move_status_request
] = MessageId.get_move_status_request


@dataclass
class GetMoveStatusResponse: # noqa: D101
payload: payloads.GetMoveStatusResponsePayload
payload_type: Type[BinarySerializable] = payloads.GetMoveStatusResponsePayload
message_id: Literal[
MessageId.get_move_status_response
] = MessageId.get_move_status_response
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
defs.ClearAllMoveGroupsRequest,
defs.MoveGroupCompleted,
defs.MoveCompleted,
defs.GetMoveStatusRequest,
defs.GetMoveStatusResponse,
]


Expand Down
11 changes: 0 additions & 11 deletions hardware/opentrons_hardware/drivers/can_bus/messages/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,3 @@ class MoveCompletedPayload(MoveGroupRequestPayload):
seq_id: utils.UInt8Field
ack_id: utils.UInt8Field
node_id: utils.UInt8Field


@dataclass
class GetMoveStatusResponsePayload(MoveGroupRequestPayload):
"""Read status of current move being executed."""

seq_id: utils.UInt8Field
remaining_duration: utils.UInt64Field
current_position: utils.UInt64Field
node_id: utils.UInt8Field
padding: utils.UInt8Field

0 comments on commit bfbab43

Please sign in to comment.