Skip to content

Commit 8e1f29c

Browse files
committed
fix(nodes, launch): Fixes two Mock GPS node related bugs
1. Fixes inverted px4_micrortps flag in mock GPS node PX4 launch configuration. 2. Fixes typo in mock GPS node source code. [skip ci]
1 parent c2473c6 commit 8e1f29c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gisnav/nodes/mock_gps_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _publish(self, lat, lon, altitude_amsl, altitude_ellipsoid, heading, timesta
123123
else:
124124
assert_type(msg, dict)
125125
assert self._mock_gps_pub is None
126-
self._socket.sendto(f'{json.dumps(msg)}'.encode('utf-8'), (self._udp_ip, self._upd_port))
126+
self._socket.sendto(f'{json.dumps(msg)}'.encode('utf-8'), (self._udp_ip, self._udp_port))
127127
else:
128128
self.get_logger().info('Could not create GPS message, skipping publishing.')
129129

launch/params/mock_gps_node_px4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mock_gps_node:
22
ros__parameters:
3-
px4_micrortps: False # Set to False for ArduPilot MAVROS
3+
px4_micrortps: True # Set to False for ArduPilot MAVROS

0 commit comments

Comments
 (0)