-
Notifications
You must be signed in to change notification settings - Fork 17k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_Math: move location_passed_point and line_path_proportion to Location #11062
Conversation
@@ -55,7 +55,7 @@ static void test_passed_waypoint(void) | |||
struct Location loc = location_from_point(test_points[i].location); | |||
struct Location wp1 = location_from_point(test_points[i].wp1); | |||
struct Location wp2 = location_from_point(test_points[i].wp2); | |||
if (location_passed_point(loc, wp1, wp2) != test_points[i].passed) { | |||
if (loc.passed_line_point(wp1, wp2) != test_points[i].passed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has bugged me for a long time.
It's past
, not passed
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so I go for past_line_point ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it should be past_point or past_line_point I think.
@peterbarker done ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've tried this with --scripting
?
I have compile on scripting ... but not test as I don't know how it works |
@khancyr I pushed in a large change to scripting so you will need to rebase to fix the changes. The good news though is that if you look in master basically all the code you were trying to edit disappeared form that file, and moved into a generated file, which doesn't use passed point at all :) |
correct rebase |
looks like its all merged now, closing |
location_passed_point was rename to passe_line_point, any other suggestion ?