Tiltrotor: VTOL back-transition: expose tilting time as parameter and reduce overall duration #21760
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.
This affects how soon after a backtransition the vehicle has the full hover controller running again. Specifically it reduces the duration of the ramp down of the motors prior to tilting them.
Solved Problem
The backtransition logic is split into 4 parts:
The ramp down and the ramp are currently hard-coded to 1s each, as well as the tilting duration. That means that it currently takes 3s from starting the transition to having full MC controller effectiveness. During the first 2s of them purely the FW controller is running and working on stabilizing the system, and then for 1s the MC controller is running but not fully yet. If the vehicle decelerates very fast it can happen that the control surfaces stall already 1s after the back-transition is started, and in that case the vehicle has bad attitude tracking until the 3s when the motors stabilize it again.
Solution
VT_BT_TILT_DUR
Changelog Entry
For release notes:
Alternatives
Test coverage
SITL tested.