Skip to content

Commit

Permalink
Added Python yaw/heading helper functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed Dec 2, 2024
1 parent 29df295 commit 92b3b5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/fusion_engine_client/messages/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,3 +785,11 @@ def PackedDataToBuffer(packed_data: bytes, buffer: Optional[bytes] = None, offse
return buffer
else:
return len(packed_data)


def yaw_to_heading(yaw_deg: Union[float, np.ndarray]):
return 90.0 - yaw_deg


def heading_to_yaw(heading_deg: Union[float, np.ndarray]):
return 90.0 - heading_deg

0 comments on commit 92b3b5b

Please sign in to comment.