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

Plane: fixed TECS state reset in VTOL auto #24191

Merged
merged 1 commit into from Jul 2, 2023

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Jul 2, 2023

this fixes a bug where TECS maintains its slow integrator while in a VTOL hover mode in AUTO or GUIDED.

Among other things this affects PAYLOAD_PLACE and DO_VTOL_TRANSITION. In those states the height can change while hovering outside the control of TECS. When TECS regains control in a fwd transition then can lead to a very large height loss or gain until the TECS integrator can catch up
By not running TECS when in these VTOL states we force it to reset when we start needing it again, preventing the integrator issue.
This bug affects 4.4.x as well
Without the fix we get this:
image
with the fix we get this:
image

this fixes a bug where TECS maintains its slow integrator while in a
VTOL hover mode in AUTO or GUIDED.

Among other things this affects PAYLOAD_PLACE and
DO_VTOL_TRANSITION. In those states the height can change while
hovering outside the control of TECS. When TECS regains control in a
fwd transition then can lead to a very large height loss or gain until
the TECS integrator can catch up
Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tridge tridge merged commit 086d090 into ArduPilot:master Jul 2, 2023
54 checks passed
@rmackay9 rmackay9 added this to Pending in Copter-4.4 Jul 3, 2023
@tridge tridge added this to 4.4.0-beta3 in Plane 4.4 Jul 3, 2023
@rmackay9 rmackay9 moved this from Pending to 4.4.0-beta3 in Copter-4.4 Dec 4, 2023
@rmackay9 rmackay9 moved this from 4.4.0-beta3 to 4.4.0-beta4 in Copter-4.4 Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Copter-4.4
4.4.0-beta4
Plane 4.4
4.4.0-beta3
Development

Successfully merging this pull request may close these issues.

None yet

2 participants