Skip to content

Commit

Permalink
remove updategearmotorpositionestimation msg
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed Jul 26, 2023
1 parent 2b71f07 commit 57bb955
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 26 deletions.
3 changes: 3 additions & 0 deletions api/src/opentrons/hardware_control/backends/ot3controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ async def tip_action(
back_off: Optional[bool] = False,
) -> None:
move_group = []
# make sure either moves or distance and velocity is not None
assert any([moves, distance and velocity])
if moves is not None:
move_group = create_tip_action_group(
moves, [NodeId.pipette_left], tip_action
Expand All @@ -639,6 +641,7 @@ async def tip_action(
move_group = create_gear_motor_home_group(
float(distance), float(velocity), back_off
)

runner = MoveGroupRunner(
move_groups=[move_group],
ignore_stalls=True if not ff.stall_detection_enabled() else False,
Expand Down
4 changes: 0 additions & 4 deletions api/src/opentrons/hardware_control/backends/ot3simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,6 @@ async def update_motor_status(self) -> None:
(node, MotorStatus(True, True)) for node in self._present_nodes
)

@ensure_yield
async def update_gear_motor_position(self) -> None:
return None

@ensure_yield
async def home_gear_motors(
self,
Expand Down
2 changes: 0 additions & 2 deletions hardware/opentrons_hardware/firmware_bindings/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ class MessageId(int, Enum):
motor_position_response = 0x14
update_motor_position_estimation_request = 0x21
update_motor_position_estimation_response = 0x22
update_gear_motor_position_estimation_request = 0x23
update_gear_motor_position_estimation_response = 0x24

set_motion_constraints = 0x101
get_motion_constraints_request = 0x102
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,24 +272,6 @@ class UpdateMotorPositionEstimationResponse(BaseMessage): # noqa: D101
] = MessageId.update_motor_position_estimation_response


@dataclass
class UpdateGearMotorPositionEstimationRequest(EmptyPayloadMessage): # noqa: D101
message_id: Literal[
MessageId.update_gear_motor_position_estimation_request
] = MessageId.update_gear_motor_position_estimation_request


@dataclass
class UpdateGearMotorPositionEstimationResponse(BaseMessage): # noqa: D101
payload: payloads.GearMotorPositionResponse
payload_type: Type[
payloads.GearMotorPositionResponse
] = payloads.GearMotorPositionResponse
message_id: Literal[
MessageId.update_gear_motor_position_estimation_response
] = MessageId.update_gear_motor_position_estimation_response


@dataclass
class SetMotionConstraints(BaseMessage): # noqa: D101
payload: payloads.MotionConstraintsPayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
defs.MotorPositionResponse,
defs.UpdateMotorPositionEstimationRequest,
defs.UpdateMotorPositionEstimationResponse,
defs.UpdateGearMotorPositionEstimationRequest,
defs.UpdateGearMotorPositionEstimationResponse,
defs.SetMotionConstraints,
defs.GetMotionConstraintsRequest,
defs.GetMotionConstraintsResponse,
Expand Down

0 comments on commit 57bb955

Please sign in to comment.