Skip to content

Commit 95aa818

Browse files
committed
fix: for protocol version >= 18
1 parent 4542ddb commit 95aa818

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ublox_gps/src/node.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ void UbloxNode::addProductInterface(const std::string & product_category,
229229
components_.push_back(std::make_shared<TimProduct>(frame_id_, updater_, this));
230230
} else if (product_category == "ADR" ||
231231
product_category == "UDR") {
232-
components_.push_back(std::make_shared<AdrUdrProduct>(nav_rate_, meas_rate_, frame_id_, updater_, this));
232+
components_.push_back(std::make_shared<AdrUdrProduct>(protocol_version_, nav_rate_, meas_rate_, frame_id_, updater_, this));
233233
} else if (product_category == "FTS") {
234234
components_.push_back(std::make_shared<FtsProduct>());
235235
} else if (product_category == "HPS") {
236-
components_.push_back(std::make_shared<AdrUdrProduct>(nav_rate_, meas_rate_, frame_id_, updater_, this));
236+
components_.push_back(std::make_shared<AdrUdrProduct>(protocol_version_, nav_rate_, meas_rate_, frame_id_, updater_, this));
237237
components_.push_back(std::make_shared<HpgRovProduct>(nav_rate_, updater_, this));
238238
} else {
239239
RCLCPP_WARN(this->get_logger(), "Product category %s %s from MonVER message not recognized %s",
@@ -772,7 +772,7 @@ bool UbloxNode::configureUblox() {
772772
" SBAS.");
773773
}
774774
}
775-
if (!gps_->setPpp(getRosBoolean(this, "enable_ppp"))) {
775+
if (!gps_->setPpp(getRosBoolean(this, "enable_ppp"), protocol_version_)) {
776776
throw std::runtime_error(std::string("Failed to ") +
777777
(getRosBoolean(this, "enable_ppp") ? "enable" : "disable")
778778
+ " PPP.");

0 commit comments

Comments
 (0)