Skip to content
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

Closed
wants to merge 6 commits into from
Closed

AP_Math: move location_passed_point and line_path_proportion to Location #11062

wants to merge 6 commits into from

Conversation

khancyr
Copy link
Contributor

@khancyr khancyr commented Apr 9, 2019

location_passed_point was rename to passe_line_point, any other suggestion ?

@khancyr khancyr added the Library label Apr 9, 2019
@@ -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) {
Copy link
Contributor

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!

Copy link
Contributor Author

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 ?

Copy link
Contributor

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.

@khancyr
Copy link
Contributor Author

khancyr commented Apr 9, 2019

@peterbarker done !

Copy link
Contributor

@peterbarker peterbarker left a 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?

libraries/AP_Common/Location.h Outdated Show resolved Hide resolved
libraries/AP_Common/Location.h Outdated Show resolved Hide resolved
libraries/AP_Common/Location.h Show resolved Hide resolved
libraries/AP_Scripting/lua_bindings.cpp Outdated Show resolved Hide resolved
libraries/AP_Scripting/lua_bindings.cpp Outdated Show resolved Hide resolved
@khancyr
Copy link
Contributor Author

khancyr commented Apr 12, 2019

I have compile on scripting ... but not test as I don't know how it works

@WickedShell
Copy link
Contributor

@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 :)

@khancyr
Copy link
Contributor Author

khancyr commented Apr 12, 2019

correct rebase

@rmackay9 rmackay9 dismissed peterbarker’s stale review April 22, 2019 23:20

issues from peter addressed

@tridge
Copy link
Contributor

tridge commented Apr 22, 2019

looks like its all merged now, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants