Skip to content

Commit

Permalink
add missing super() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Jul 30, 2024
1 parent e99d799 commit 24d0da5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(self, system: 'System', tool: Implement) -> None:
self.crop_attraction = 0.5

async def prepare(self) -> bool:
await super().prepare()
self.log.info(f'Activating {self.implement.name}...')
self.plant_provider.clear()
await self.implement.activate()
Expand All @@ -34,6 +35,7 @@ async def prepare(self) -> bool:
return True

async def finish(self) -> None:
await super().finish()
await self.flashlight.turn_off()
self.plant_locator.pause()
await self.implement.deactivate()
Expand Down
1 change: 1 addition & 0 deletions field_friend/automations/navigation/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ async def prepare(self) -> bool:
async def finish(self) -> None:
"""Executed after the navigation is done"""
self.gnss.is_paused = False
self.log.info('Navigation finished')

@abc.abstractmethod
async def _drive(self, distance: float) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, system: 'System', tool: Implement) -> None:
self.row_index = 0

async def prepare(self) -> bool:
await super().prepare()
if self.field is None:
rosys.notify('No field selected', 'negative')
return False
Expand Down

0 comments on commit 24d0da5

Please sign in to comment.