Skip to content

Commit

Permalink
Simulation raise switch (#1057)
Browse files Browse the repository at this point in the history
* Types and Docstring update

* Update navigator_emergency.py

* changed to raise exception

---------

Co-authored-by: Cameron Brown <me@cbrxyz.com>
Co-authored-by: cameron brown <52760912+cbrxyz@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 22, 2024
1 parent 6067925 commit bfd946f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def reset(self) -> None:

def check_for_timeout(self, joy: Joy):
"""
Consists of several procedures that reference parameters that are retrieved from the "Joy" object in
order to determine the state of the controller or whether it is a timeout phase.
This checks for a particular duration when the controller times out.
Args:
joy (Joy): The Joy message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ def on_data(self, data: bytes, can_id: int) -> None:
packet = HeartbeatMessage.from_bytes(data)
self._last_heartbeat = rospy.Time.now()
else:
assert False, "No recognized identifier"
raise Exception("No recognized identifier")

0 comments on commit bfd946f

Please sign in to comment.