mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-06 21:54:15 +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));
|
+powf( waypoint.Position[1]-positionActual.East ,2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (distance>=pathAction.ConditionParameters[0]) {
|
if (distance<=pathAction.ConditionParameters[0]) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user