mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-1287 made velocity calculation implicit in pathfollower based on distance only
This commit is contained in:
parent
8f9b5b2282
commit
c3d20e72b9
@ -285,7 +285,6 @@ static void plan_run_PositionVario(vario_type type)
|
||||
pathDesired.Start.North = pathDesired.End.North + maxGradient.Distance; // in FlyEndPoint the direction of this vector does not matter
|
||||
pathDesired.Start.East = pathDesired.End.East;
|
||||
pathDesired.Start.Down = pathDesired.End.Down;
|
||||
pathDesired.StartingVelocity = maxGradient.Speed;
|
||||
PathDesiredSet(&pathDesired);
|
||||
}
|
||||
} else {
|
||||
@ -323,7 +322,6 @@ static void plan_run_PositionVario(vario_type type)
|
||||
pathDesired.Start.North = pathDesired.End.North + maxGradient.Distance; // in FlyEndPoint the direction of this vector does not matter
|
||||
pathDesired.Start.East = pathDesired.End.East;
|
||||
pathDesired.Start.Down = pathDesired.End.Down;
|
||||
pathDesired.StartingVelocity = maxGradient.Speed;
|
||||
PathDesiredSet(&pathDesired);
|
||||
}
|
||||
}
|
||||
@ -450,6 +448,5 @@ void plan_run_AutoCruise()
|
||||
pathDesired.Start.North = pathDesired.End.North + maxGradient.Distance; // in FlyEndPoint the direction of this vector does not matter
|
||||
pathDesired.Start.East = pathDesired.End.East;
|
||||
pathDesired.Start.Down = pathDesired.End.Down;
|
||||
pathDesired.StartingVelocity = maxGradient.Speed * controlVector[3];
|
||||
PathDesiredSet(&pathDesired);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user