-
Notifications
You must be signed in to change notification settings - Fork 3.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
QGC Master fails to upload mission to ArduPilot #6783
Comments
Firmware version and vehicle type? |
3.6 master quad and tradheli on fmuv5 |
My guess is NaN on Heading to indicate not heading change. Can you quick try single waypoint with/without heading checked? |
you mean using parameter 4 ? |
i'm using the same mission that still fails (attached above - just remove the .txt) |
Forgot that Heading field is not displayed for ArduPilot only PX4. Change Param4 to 0 (--.-- indicates NaN) and I bet it will work. NaN there is supposed to indicate don't change heading which is what param 4 is. Looks like something changes in ArduPilot to start rejecting this for some reason. |
Ah, that's a QGC bug. There shouldn't be a Nan in param 4 there. How did you create that mission did you add a waypoint and then change it to RTL or use the RTL checkbox from Mission Start. |
Exactly. Changed the last WP to RTL |
Awesome, thanks. I'll fix. Defaults for params whould have been reset when you switched commands but they weren't. So you still have the NaN for heading in there from the original waypoint command. |
;) Thanks @DonLakeFlyer |
I'll close once I fix |
Sorry for stirring up the pot again, but I'm getting this on QGC 3.5.0 using Ardupilot Plane v3.9.6 This can be repro'd by inserting a new waypoint, tapping the waypoint to change the type, selecting loiter from the dropdown, and selecting the loiter waypoint type. |
@Thyself17 You problem is different than the original problem. This has to do with the LOITER_UNLIM command and param4 which specifies a heading. A NaN in this field means do not change heading. This is used for multi-rotor only so I'm not sure why ArduPlane is looking at that param at all since it is not relevant for fixedwing. I'm going to have to talk with Tridge to figure out why this matters to ArduPlane. You can workaround by going into Show all value and changing param4 to 0. |
In looking at ArduPilot source this is a generic problem with all vehicle types. It doesn't seem to validate param4 correctly for the LOITER commands. Although the mavlink spec on LOITER.param4/heading is not very clear as to NaN usage. |
@DonLakeFlyer Ah thanks for the update. |
@Thyself17 Can you try tomorrow's daily build and see how it works? |
Will do. Thanks for your tremendous efforts, @DonLakeFlyer . I'll let you know how it goes. |
Not quite sure what you mean by that can you explain? I only changed the code for adding a loiter manually. |
I've attached a screenshot (and the mission plan .plan file renamed as a .txt) to hopefully help with the description. |
Hmm, that's a different problem than the LOITER commands. It's caused by the stop camera commands. In that case as far as I can tell ArduPilot is just doing the wrong thing. |
Also I don't think ArduPilot supports those commands yet. Can you just turn those off? |
Gotcha. I shouldn't have assumed they were directly related. Turning off the camera settings allows me to upload fixed wing landing patterns again. And I'll make sure I get back to you with the results of the daily build tomorrow :) |
There is a bug that for ArduPilot these checkboxes should not be showing up at all. |
Just to detail out the issue. QGC was sending the wrong values for fixed wing missions and LOITER commands with respect to param4. I've fixed that. I've hacked ArduPilot multi-rotor mission upload to also default to 0 for param4 (instead of NaN) which to me seems incorrect but don't have time to argue. ArduPilot as far as I can tell does not yet support the heading field in loiter commands. What this means is that if they ever do they will suddenly all set of a heading of 0 which is basically wrong. PX4 multi-rotor missions continue to defailt to NaN to specify no heading change on loiter commands. There are still problems here with respect to camera commands in Fixed Wing Landing pattern and ArduPilot. I'll get around to fixing that as well. |
Also realizing now that my hack for this has broken PX4 fixed wing since it will default to NaN for param4 when it should default to 0 for fixed wing for x-track exit. |
Well the good news is that with the daily build from yesterday I can successfully create loiter waypoints for Ardupilot Plane :) I'll keep watching this space for updates to QGC. I'll be happy to give another build a test on arduplane |
@Thyself17 Can you try tomorrows daily build again to make sure I haven't screwed anything up with latest change? |
@DonLakeFlyer Fixed wing landing pattern looks good too. No camera options and the upload works fine |
@Thyself17 Awesome, thanks so much for veriyfing. |
@DonLakeFlyer No problem. If you ever need someone to verify changes to QGC on an arduplane build, throw me a ping. |
Hi @DonLakeFlyer
defining just a simple mission, when trying to upload to vehicle, this comes up.
Apparently part of the mission is uploaded.
The text was updated successfully, but these errors were encountered: