Skip to content

Commit

Permalink
fixed parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
umroverPerception committed Feb 2, 2025
1 parent b62a9c4 commit c51e161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions localization/rover_gps_driver.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def __init__(self) -> None:
("baud_ublox", Parameter.Type.INTEGER),
],
)
self.port = self.get_parameter("port").value
self.baud = self.get_parameter("baud").value
self.port = self.get_parameter("port_ublox").value
self.baud = self.get_parameter("baud_ublox").value

self.gps_pub = self.create_publisher(NavSatFix, "gps/fix", 10)
self.gps_status_pub = self.create_publisher(FixStatus, "gps_fix_status", 10)
Expand Down
4 changes: 2 additions & 2 deletions localization/rover_gps_driver/rover_gps_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ namespace mrover {
declare_parameter("baud_unicore", rclcpp::ParameterType::PARAMETER_INTEGER);
declare_parameter("frame_id", rclcpp::ParameterType::PARAMETER_STRING);

port = get_parameter("port").as_string();
baud = get_parameter("baud").as_int();
port = get_parameter("port_unicore").as_string();
baud = get_parameter("baud_unicore").as_int();
frame_id = get_parameter("frame_id").as_string();

serial.open(port);
Expand Down

0 comments on commit c51e161

Please sign in to comment.