-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Add new mode AUTO_PRECLAND #9261
Conversation
Looks right, although to be honest I was still hoping we'd find a good way to make this functional without having yet another flight mode. The custom flight mode header needs to be copied over to QGC. https://github.com/mavlink/qgroundcontrol/blob/master/src/FirmwarePlugin/PX4/px4_custom_mode.h |
@dagar , actually this is already functional using auto missions. But, I also can do So, yes, QGC needs to be updated also. |
@okalachev This should be good to go. Can you make a QGC PR too? :) |
How does this work? I assume the user does not manually change to precision land flight mode. It's just some vehicle setup which changes any landing to precision landing? |
In mission, it's a So user can manually switch the vehicle to, for example, |
How does a mission using MAV_CMD_NAV_LAND change from regular landing to precision landing? |
It's the second parameter of |
So that is a change to mavlink spec which QGC knows nothing about. When mavlink mission item spec changes QGC needs to be notified/modified as well otherwise users will not be able to set this value in MAV_CMD_NAV_LAND mission items. Also when QGC commands the vehicle to land using a guided action (left side buttons) it is always going to set param2=0. Is this new flight mode really something the user can manually change to by changing flight mode? The LAND flight mode is currently just used as a state indicator. The user does not change to LAND flight mode. Is this new flight mode different in that the user should be able to select it manually (not from a mission). It seems a bit strange that this isn't a parameter setting on the vehicle to attempt precision land as opposed to having to specify precision land in the command you are using. What happens when you RTL? |
Yes, this changes to spec were made, when PX4 precision landing was introduced, see the docs, http://mavlink.org/messages/common. Although I'm not sure that this is the final list of the precision landing variants. And yes, there some options have to be added to
This is clear. Maybe, this button should contain some options.
Yes, with this PR code, the user can perform a precision landing using regular
Actually, this architecture was chosen, when precision landing feature was developed. But, I think, that you may have several landing points in your mission, and some of them can be precise, and some of them not. |
It would seem to me that this would be used mostly in missions. So not super interested in cluttering the QGC UI with additional user selectable modes for landing when not flying a mission. Whether that be in the flight mode drop down or the Guided Land button. Regular Land is not currently a selectable flight mode by the user. Doesn't seem like precision land would be either. Does that make sense to everyone? |
I'm okay, if this mode can't be selected in drop-down menu. But if it would be a MAVLink mode, it should be displayed in QGC correctly, agreed? As an alternative, the internal |
Yes. It just need to be marked as not user selectable in your pull. Can you add an Issue to QGC to add the new param support to NAV_LAND for missions? |
OK, did it.
May be I consider to do a PR about this, but note, that this feature isn't released yet. |
@ndepal , what do you think? |
Thanks @okalachev . I agree with @DonLakeFlyer that this mode will usually be used within a mission, so being able to select it in QGC is not crucial.
The reason for specifying it for in the land waypoint itself is so that you can have normal and precise landings, as @okalachev said. Precision landing in RTL mode is not currently supported, but I would like to add this.
Perhaps setting it to 1 (opportunistic precision landing) would be a good option? |
It's unclear what affect that will have on other firmwares and/or mavlink generic vehicles. Usually not a good idea to use non-default command values for generic capabilities like Land. |
QGroundControl already adopted this mode, so I think this should be merged. |
I'm checking... |
Not sure how it got through CI. @dagar ideas? |
#8582 this PR has changed |
This adds support of a new mode for precision landing, so it can be set and viewed using MAVLink.
Corresponding mavros PR: mavlink/mavros#994.
Tested in SITL.