FlightTaskAutoLine: fix greater sign

This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent 60a9b45c88
commit 29391acbca
@@ -303,7 +303,7 @@ void FlightTaskAutoLine::_generateXYsetpoints()
float speed_threshold = _mc_cruise_speed;
const float threshold_max = target_threshold;
if (target_threshold < 0.5f * prev_to_dest.length()) {
if (target_threshold > 0.5f * prev_to_dest.length()) {
/* Target threshold cannot be more than distance from previous to target */
target_threshold = 0.5f * prev_to_dest.length();
}