1
0
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:
Corvus Corax 2012-11-23 12:29:25 +01:00
parent 55f0d41016
commit c6effbbb0f

View File

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