You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed the call to the scoring function in path_finder_find_step reverses the col and row arguments.
path_finder->f_score[n] = path_finder->f_score[n] + path_finder->score_func(path_finder, n / path_finder->cols, n % path_finder->cols, data);
Looks like it should be: path_finder->f_score[n] = path_finder->f_score[n] + path_finder->score_func(path_finder, n % path_finder->cols, n / path_finder->cols, data);
Just switching the modulus and division.
As a sidenote, great work, I find your code really clean and simple and have been trying to model mine after it since using your library.
The text was updated successfully, but these errors were encountered:
mstratman
added a commit
to mstratman/uastar
that referenced
this issue
Apr 17, 2024
Hi, I noticed the call to the scoring function in path_finder_find_step reverses the col and row arguments.
path_finder->f_score[n] = path_finder->f_score[n] + path_finder->score_func(path_finder, n / path_finder->cols, n % path_finder->cols, data);
Looks like it should be:
path_finder->f_score[n] = path_finder->f_score[n] + path_finder->score_func(path_finder, n % path_finder->cols, n / path_finder->cols, data);
Just switching the modulus and division.
As a sidenote, great work, I find your code really clean and simple and have been trying to model mine after it since using your library.
The text was updated successfully, but these errors were encountered: