Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian-BARRE committed Jun 20, 2024
1 parent b7dc9c4 commit 615d897
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions robot1/rasp/brains/main_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,12 @@ async def go_and_drop_to_gardener(self, target_gardener: Plants_zone) -> None:
target_gardener.zone.centroid.y,
)
self.logger.log("Start gardener approach", LogLevels.INFO)
result = await self.smart_go_to(
approach_target, **CONFIG.GO_TO_PROFILES["garden_approach"], timeout=10
)
self.logger.log(f"Start gardener approach result: {result}", LogLevels.INFO)
if (
await self.smart_go_to(
approach_target, **CONFIG.GO_TO_PROFILES["garden_approach"], timeout=10
)
== 0
result == 0
):
self.logger.log(
"Gardener approach success, get good orientation with the wall and go forward",
Expand Down

0 comments on commit 615d897

Please sign in to comment.