mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 22:03:34 +08:00
FlightTaskAutoLine: fix greater sign
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user