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

Fix Helicopter saturation logic #22147

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Fix Helicopter saturation logic #22147

merged 1 commit into from
Sep 28, 2023

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Sep 27, 2023

This became necessary otherwise
the allocation reports saturation all
the time and the rate integrator doesn't work.

Solved Problem

When using a helicopter on the latest version I found that the integrator doesn't have any effect. The issue seems to be the same as was fixed for tiltrotors in #21994 I'm looking for the original change that made this necessary.

Solution

Handle the unsaturated case explicitly and report 0 unallocated torque in that case.

Changelog Entry

For release notes:

Bugfix: Helicopter saturation logic leads to rate control integrator not working

Test coverage

After this change it was working like expected again, tested on a real helicopter.

Context

Before
image
After
image

This became necessary otherwise
the allocation reports saturation all
the time and the rate integrator doesn't work.
@MaEtUgR MaEtUgR requested review from bkueng and sfuhrer September 27, 2023 15:26
@MaEtUgR MaEtUgR self-assigned this Sep 27, 2023
@MaEtUgR MaEtUgR changed the title ActuatorEffectivenessHelicopter: explicitly handle unsaturated case Fix Helicopter saturation logic Sep 27, 2023
@MaEtUgR
Copy link
Member Author

MaEtUgR commented Sep 27, 2023

Note that I already added it for the coaxial heli in #22083

@bkueng bkueng merged commit 99e2acf into main Sep 28, 2023
@bkueng bkueng deleted the maetugr/heli-unsaturated-case branch September 28, 2023 06:53
@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-helicopter-support/34805/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants