We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c82d7fc commit c94f4f6Copy full SHA for c94f4f6
rosys/hardware/gnss.py
@@ -201,7 +201,7 @@ async def _run(self) -> None:
201
last_pssn_timestamp = timestamp
202
last_raw_heading = float(parts[4] or 0.0)
203
last_heading_accuracy = float(parts[7] or 'inf')
204
- if last_gga_timestamp == last_gst_timestamp == last_pssn_timestamp != '':
+ if last_gga_timestamp > 0 and last_gst_timestamp > 0 and last_pssn_timestamp > 0:
205
last_heading = last_raw_heading + self.antenna_pose.yaw_deg
206
antenna_pose = GeoPose.from_degrees(last_raw_latitude, last_raw_longitude, last_heading)
207
robot_pose = antenna_pose.relative_shift_by(x=-self.antenna_pose.x, y=-self.antenna_pose.y)
0 commit comments