From 54866b886eabef69991b3e770c9032bb31867155 Mon Sep 17 00:00:00 2001 From: Jacob Dahl <37091262+dakejahl@users.noreply.github.com> Date: Wed, 15 Oct 2025 13:28:14 -0800 Subject: [PATCH] gz: fix gimbal message type (#25770) --- src/modules/simulation/gz_bridge/GZGimbal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/simulation/gz_bridge/GZGimbal.cpp b/src/modules/simulation/gz_bridge/GZGimbal.cpp index da017f28a0..ca0cd08c3e 100644 --- a/src/modules/simulation/gz_bridge/GZGimbal.cpp +++ b/src/modules/simulation/gz_bridge/GZGimbal.cpp @@ -228,12 +228,12 @@ void GZGimbal::publishDeviceAttitude() void GZGimbal::publishJointCommand(gz::transport::Node::Publisher &publisher, const float att_stp, const float rate_stp, float &last_stp, const float min_stp, const float max_stp, const float dt) { - gz::msgs::Float msg; + gz::msgs::Double msg; float new_stp = computeJointSetpoint(att_stp, rate_stp, last_stp, dt); new_stp = math::constrain(new_stp, min_stp, max_stp); last_stp = new_stp; - msg.set_data(new_stp); + msg.set_data((double)new_stp); publisher.Publish(msg); }