ardupilot
ardupilot copied to clipboard
Expand tradheli inverted flight to non manual throttle modes
The fix was a little simpler than I thought. It looks like a change to the handling of landing collective is what broke the ability to use inverted flight in non-manual throttle modes. Landing collective is how the collective is kept from going below the minimum allowable collective when landed. this is managed using the dynamic flight flag as a last resort to keep the collective from being lowered below the minimum allowed in non manual throttle modes.
This wasn't the only thing that need fixed for being able to do inverted flight in loiter and auto modes. The input_thrust_vector... methods needed to be modified to accommodate inverted flight. This was a bit of a hack on my part and will need help from @lthall or @IamPete1 to make sure these are right.
Additional modes can be added now. I just put althold, loiter, and auto modes in as a first cut. This has only been tested in real flight simulator