Tiltrotor: move spin up tilt to control allocation #21991
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solved Problem
This removes the functionality around specifying a spin up tilt thorough the param VT_TILT_SPINUP in the VTOL module , and instead adds the functionality in slightly altered fashion in the control allocation for tiltrotor VTOLs. How it works now:
Changelog Entry
For release notes:
Alternatives
It would be nice if the specified slew rate limiting on the tilts is also active during the spin up. To achieve that we could again use a customized tilt for spin up (re-use VT_TILT_SPINUP in the control allocation) and set the tilts to this value until 1s after arming. Problem with that approach is that then the allocation will compensate for the loss in vertical thrust effectiveness due to the motor tilt, with results in the motor throttle going above the specified minimum when the motors are tilted for spin up, only to then go down again when idling on the ground with the tilts in MC configuration.
Test coverage
flight tested.