From eb59bb9de90547ed9271c3927db9fde202cc7d25 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 22 Apr 2024 13:29:01 -0400 Subject: [PATCH] simulation/gz_bridge: eliminate implicit float conversion --- src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp b/src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp index 2fed14dfe7..2198bacbaa 100644 --- a/src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp +++ b/src/modules/simulation/gz_bridge/GZMixingInterfaceWheel.cpp @@ -78,8 +78,8 @@ bool GZMixingInterfaceWheel::updateOutputs(bool stop_wheels, uint16_t outputs[MA for (unsigned i = 0; i < active_output_count; i++) { // Offsetting the output allows for negative values despite unsigned integer to reverse the wheels - static constexpr float output_offset = 100.0f; - float scaled_output = (float)outputs[i] - output_offset; + static constexpr double output_offset = 100.0; + double scaled_output = (double)outputs[i] - output_offset; wheel_velocity_message.set_velocity(i, scaled_output); }