mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
bugfix to pathplanner
This commit is contained in:
parent
55f0d41016
commit
c6effbbb0f
@ -357,7 +357,7 @@ static uint8_t conditionDistanceToTarget() {
|
||||
+powf( waypoint.Position[1]-positionActual.East ,2));
|
||||
}
|
||||
|
||||
if (distance>=pathAction.ConditionParameters[0]) {
|
||||
if (distance<=pathAction.ConditionParameters[0]) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user