mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 01:50:34 +08:00
mc_pos_contol: add break when printing warning
This commit is contained in:
committed by
Lorenz Meier
parent
13f8936cf1
commit
8c5b1d33da
@@ -2088,6 +2088,7 @@ MulticopterPositionControl::calculate_thrust_setpoint(float dt)
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
if (!PX4_ISFINITE(thrust_sp(i))) {
|
||||
warn_rate_limited("Thrust setpoint not finite");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user