Skip to content

Commit

Permalink
Include solution type and heading in HeadingOutput repr().
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed May 8, 2024
1 parent 318f4d5 commit 5f3b736
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/fusion_engine_client/messages/measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,8 +1243,7 @@ def unpack(self, buffer: bytes, offset: int = 0, message_version: int = MessageP

def __repr__(self):
result = super().__repr__()[:-1]
ypr_str = ['%.1f' % v for v in self.ypr_deg]
result += f', solution_type={self.solution_type}, ypr=[{ypr_str}] deg]'
result += f', solution_type={self.solution_type}, heading={self.heading_true_north_deg:.1f} deg]'
return result

def __str__(self):
Expand Down

0 comments on commit 5f3b736

Please sign in to comment.