Skip to content

Commit

Permalink
Added assert to not wait forever if GNSS is currently paused.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaTechRC committed Sep 11, 2024
1 parent b2060a1 commit 8af2c89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions field_friend/localization/gnss.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def _on_rtk_fix(self) -> None:
self._update_robot_pose()

async def wait_for_updated_robot_pose(self) -> None:
assert not self._is_paused
if self.ensure_gnss:
await self._pose_update.wait()

Expand Down

0 comments on commit 8af2c89

Please sign in to comment.