In the past few days I have tested fixed wing RTB about 10 times; all from close by (100m to 500m) so I have not tested speed / altitude / course over anything like a long distance. All were successful.
Settings I changed:
<object id="0xDA4294AA" name="FixedWingPathFollowerSettings">
<field name="HorizontalVelMax" values="12"/>
<field name="HorizontalVelMin" values="12"/>
<field name="VerticalVelMax" values="2"/>
<field name="HorizontalPosP" values="0.400000006"/>
<field name="VerticalPosP" values="0.5"/>
<field name="CoursePI" values="0.400000006,0,0"/>
<field name="PitchLimit" values="-4,7,20"/>
<field name="ThrustLimit" values="0.100000001,0.550000012,0.649999976"/>
</object>
I set horizontal velocity min=max=12 to try to get the speed more consistent. Speed still varies a lot on waypoint flight and Base loiter.
I reduced vertical velocity, negative pitch limit, and max thrust limit to try to avoid scary dives. Nothing scary any more.
I increased horizontal P, etc. to make turns and loiter tighter. It worked.
I believe that the motor stops (lower than .1) during loiter at Base. When I was flying waypoint flights there were both kinds of over speed warnings (fwpf max and system wide max) and under speed warnings. I set the error destination of each waypoint to -1 to disable the error destination and it successfully flew many laps of a small simple 4 waypoint plan. Before that it was constantly erroring and going to WP#1.
It would be nice to have a step by step setup and tuning guide, fixing alarms, etc. for fixed wing.
build balance align
fly in manual mode and adjust trims mechanically so that transmitter trims are centered
fly in rate mode (yaw manual) and adjust Stabilization page PIDs for maximum response without oscillation
fly in attitude mode (yaw manual) and adjust for max response
(fixed wing needs to zero the integral when in manual mode so that a switch to stabilized doesn't go crazy for a few seconds, yes you can zero the throttle, switch to stabilized, increase throttle to work around this)
enable GPS airspeed sensor in two places
determine airspeed and set fwpf speeds and throttles
adjust fwpf horizontal PIDs etc to tighten up loiter
crossfeeds and other stuff