mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 20:03:33 +08:00
CI: enable clang-tidy bugprone-incorrect-roundings (#26574)
switched to lroundf and included cmath in all removed std namespace - quick tested Signed-off-by: kuralme <kuralme@protonmail.com>
This commit is contained in:
@@ -90,7 +90,7 @@ bool FlightTaskOrbit::applyCommandParameters(const vehicle_command_s &command, b
|
||||
|
||||
// commanded heading behaviour
|
||||
if (PX4_ISFINITE(command.param3)) {
|
||||
if (static_cast<uint8_t>(command.param3 + .5f) == vehicle_command_s::ORBIT_YAW_BEHAVIOUR_UNCHANGED) {
|
||||
if (static_cast<uint8_t>(lround(command.param3)) == vehicle_command_s::ORBIT_YAW_BEHAVIOUR_UNCHANGED) {
|
||||
if (!_currently_orbiting) { // only change the yaw behaviour if we are not actively orbiting
|
||||
_yaw_behaviour = _param_mc_orbit_yaw_mod.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user