Skip to content

Commit

Permalink
logging and quick-fix for U5
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBaecker committed Jul 19, 2024
1 parent 40146e8 commit 19de0d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion field_friend/automations/navigation/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ async def _drive_to_yaw(self, distance: float, yaw: float):
await self.driver.wheels.drive(*self.driver._throttle(1, yaw)) # pylint: disable=protected-access
try:
while self.odometer.prediction.point.distance(start_position) < distance:
# FIXME: ggf. deadline erhöhen
if rosys.time() >= deadline:
raise TimeoutError('Driving Timeout')
self.log.error(
f'Driving Timeout at startpoint: {start_position} with yaw: {yaw} and target point: {self.odometer.prediction.point}')
break
# raise TimeoutError('Driving Timeout')
await rosys.sleep(0.01)
finally:
await self.driver.wheels.stop()
Expand Down

0 comments on commit 19de0d0

Please sign in to comment.