Skip to content
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

Tiltrotor: VTOL back-transition: expose tilting time as parameter and reduce overall duration #21760

Merged
merged 3 commits into from Jun 27, 2023

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Jun 26, 2023

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:

  • ramp down motors
  • tilt motors
  • ramp up motors
  • wait till transition exit conditions are met (groundspeed and time)

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.

image

Solution

  • reduce BACKTRANS_THROTTLE_DOWNRAMP_DUR_S from 1 to 0.5s
  • reduce BACKTRANS_THROTTLE_UPRAMP_DUR_S from 1s to 0.5s
  • expose backtransition motor tilting time as a parameter VT_BT_TILT_DUR

Changelog Entry

For release notes:

Feature: VTOL back-transition: expose tilting time as parameter and reduce overall duration
New parameter: VT_BT_TILT_DUR

Alternatives

Test coverage

SITL tested.

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.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This reduces the motor ramp up time after a transitions is declared over.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer sfuhrer added the Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! label Jun 26, 2023
@sfuhrer sfuhrer requested a review from RomanBapst June 26, 2023 08:24
@sfuhrer sfuhrer changed the title tiltrotor: VTOL back-transition: expose tilting time as parameter and reduce overall duration Jun 26, 2023
@sfuhrer sfuhrer changed the title VTOL back-transition: expose tilting time as parameter and reduce overall duration Tiltrotor: VTOL back-transition: expose tilting time as parameter and reduce overall duration Jun 26, 2023
RomanBapst
RomanBapst previously approved these changes Jun 26, 2023
Instead of hard-coding the tilting duration (from FW to MC tilt),
expose it as a parameter (VT_BT_TILT_DUR). The default is the same
as the hard-coded value previously (1s).
Slower tilting mechanisms need a higher value here, while for smaller
ones a too high value results in unnecessary delays till the motors
are in hover configuration.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer sfuhrer merged commit e349939 into main Jun 27, 2023
78 of 86 checks passed
@sfuhrer sfuhrer deleted the pr-tiltrotor-reduce-bt-rampup-main branch June 27, 2023 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants