mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
We don't want zero-length path_direction vector.
This commit is contained in:
parent
065ba1a0c8
commit
9ab6299247
@ -113,7 +113,8 @@ static void path_endpoint(float *start_point, float *end_point, float *cur_point
|
|||||||
if (dist_diff < 1e-6f) {
|
if (dist_diff < 1e-6f) {
|
||||||
status->fractional_progress = 1;
|
status->fractional_progress = 1;
|
||||||
status->error = 0;
|
status->error = 0;
|
||||||
status->path_direction[0] = status->path_direction[1] = status->path_direction[2] = 0;
|
status->path_direction[0] = status->path_direction[1] = 0;
|
||||||
|
status->path_direction[2] = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user