From 146be55749541369ca77d3d78dfd899f233b7582 Mon Sep 17 00:00:00 2001 From: Lukas Baecker Date: Mon, 9 Sep 2024 16:29:54 +0200 Subject: [PATCH] deleting timeouts --- field_friend/automations/implements/weeding_implement.py | 3 ++- field_friend/automations/puncher.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/field_friend/automations/implements/weeding_implement.py b/field_friend/automations/implements/weeding_implement.py index 78f0350e..0fcad8f0 100644 --- a/field_friend/automations/implements/weeding_implement.py +++ b/field_friend/automations/implements/weeding_implement.py @@ -84,7 +84,8 @@ async def deactivate(self): self.kpi_provider.increment_weeding_kpi('rows_weeded') async def start_workflow(self) -> None: - await rosys.sleep(2) # wait for robot to stand still + # TODO: only sleep when moving + # await rosys.sleep(2) # wait for robot to stand still if not self._has_plants_to_handle(): return self.log.info(f'Handling plants with {self.name}...') diff --git a/field_friend/automations/puncher.py b/field_friend/automations/puncher.py index a10ec01f..f6b6ed93 100644 --- a/field_friend/automations/puncher.py +++ b/field_friend/automations/puncher.py @@ -79,7 +79,7 @@ async def punch(self, rosys.notify('homing failed!', type='negative') self.log.error('homing failed!') raise PuncherException('homing failed') - await rosys.sleep(0.5) + # await rosys.sleep(0.5) if isinstance(self.field_friend.y_axis, ChainAxis): if not self.field_friend.y_axis.min_position <= y <= self.field_friend.y_axis.max_position: rosys.notify('y position out of range', type='negative')