From 8c2503070c056a9b268e70be33e4788d82714168 Mon Sep 17 00:00:00 2001 From: haitomatic Date: Tue, 16 Jul 2024 15:45:04 +0000 Subject: [PATCH] gz bridge: fix airpeed topic subscription typo --- src/modules/simulation/gz_bridge/GZBridge.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/simulation/gz_bridge/GZBridge.cpp b/src/modules/simulation/gz_bridge/GZBridge.cpp index bef1be0a08cc..9fcc16e0e1f2 100644 --- a/src/modules/simulation/gz_bridge/GZBridge.cpp +++ b/src/modules/simulation/gz_bridge/GZBridge.cpp @@ -171,11 +171,11 @@ int GZBridge::init() #if 0 // Airspeed: /world/$WORLD/model/$MODEL/link/airspeed_link/sensor/air_speed/air_speed - std::string airpressure_topic = "/world/" + _world_name + "/model/" + _model_name + + std::string airspeed_topic = "/world/" + _world_name + "/model/" + _model_name + "/link/airspeed_link/sensor/air_speed/air_speed"; - if (!_node.Subscribe(airpressure_topic, &GZBridge::airspeedCallback, this)) { - PX4_ERR("failed to subscribe to %s", airpressure_topic.c_str()); + if (!_node.Subscribe(airspeed_topic, &GZBridge::airspeedCallback, this)) { + PX4_ERR("failed to subscribe to %s", airspeed_topic.c_str()); return PX4_ERROR; }