Skip to content

Commit

Permalink
fix get lonlat py
Browse files Browse the repository at this point in the history
  • Loading branch information
kengohozumi committed Oct 2, 2024
1 parent 528f772 commit c192dc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orange_bringup/orange_bringup/get_lonlat.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def publish_GPS_lonlat(self):

self.lonlat_msg.status.status = NavSatStatus.STATUS_FIX if lonlat[
0] != 0 else NavSatStatus.STATUS_NO_FIX
self.lonlat_msg.latitude = lonlat[1]
self.lonlat_msg.longitude = lonlat[2]
self.lonlat_msg.altitude = lonlat[3]
self.lonlat_msg.latitude = float(lonlat[1])
self.lonlat_msg.longitude = float(lonlat[2])
self.lonlat_msg.altitude = float(lonlat[3])

self.lonlat_pub.publish(self.lonlat_msg)
self.get_logger().info(f"Published GPS data: {lonlat}")
Expand Down

0 comments on commit c192dc5

Please sign in to comment.