-
Notifications
You must be signed in to change notification settings - Fork 93
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
mission_raw: add planned home position #323
Conversation
6d6155a
to
e25d8f0
Compare
Ok now it has a |
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.
But this won't have any effect for PX4, which would be confusing.
Plus, from what I hear this home position is mostly not used for ArduPilot.
Or maybe I'm misunderstanding this. Are we talking about the ArduPilot feature where home needs to be in 0, or are we talking about a general functionality that allows a mission to be moved to where the vehicle is?
I think it is just part of the parsing of a QGC
I am not completely sure what this "planned home position" is. Maybe @RomanBapst can elaborate a bit here? |
@julianoes For the PX4 integration tests I need to be able to move the mission to the location of the vehicle. |
I see. So what's the behavior if someone sets that field and then the home position is different from the planned one? Is everything shifted? |
@julianoes This is not really the problem of MAVSDK, is it? All that MAVSDK does it telling the user that the plan file which has been loaded contains a planned home position and the values are such and such. The integrator can use that (I am using is for integration testing) but MAVSDK should not care. Does that make sense? |
Oh, now I understand! This has nothing to do with upload. Sorry, I missed that. Hm, ok. Would be nice to have an example that shows how to use the value, if set. Or at least make it very clear from the description of the field. And make sure to fix the linting/CI. |
This won't go into v1.4 though but I'd say v2/main. |
@julianoes I will try to add an example. Maybe loading a VTOL mission from a plan file and making sure that the distance between planned home and the VTOL takeoff item is more than X? |
Sure, whatever you would use it for. |
e25d8f0
to
a22cf87
Compare
Goes with mavlink/MAVSDK#2115
The thing is that now it forces everybody to set that value (we can't have it optional with the auto-generation) 🤔. I wonder if that's reasonable or not 🤔.
Do users even use the
MissionImportData
directly, or is it just used in the implementation somehow?@RomanBapst: what do you think?