We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e341e8f commit fc2621fCopy full SHA for fc2621f
src/modules/simulation/sensor_airspeed_sim/SensorAirspeedSim.cpp
@@ -184,8 +184,8 @@ void SensorAirspeedSim::check_failure_injection()
184
bool handled = false;
185
bool supported = false;
186
187
- const int failure_unit = round(vehicle_command.param1);
188
- const int failure_type = round(vehicle_command.param2);
+ const int failure_unit = static_cast<int>(std::lround(vehicle_command.param1));
+ const int failure_type = static_cast<int>(std::lround(vehicle_command.param2));
189
190
if (failure_unit == vehicle_command_s::FAILURE_UNIT_SENSOR_AIRSPEED) {
191
0 commit comments