mc_pos_contol: add break when printing warning

This commit is contained in:
Dennis Mannhart 2017-05-05 15:18:26 +02:00 committed by Lorenz Meier
parent 13f8936cf1
commit 8c5b1d33da

View File

@ -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;
}
}