Skip to content

Make hover throttle more predictable in mc-stabilized mode #24710

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

Merged
merged 10 commits into from
Apr 22, 2025

Conversation

dawr68
Copy link
Contributor

@dawr68 dawr68 commented Apr 11, 2025

Current behavior

Throttle curve rescaling using the Hover Thrust Estimator (HTE) causes throttle jumps, making the throttle response unpredictable for the pilot (see #24654).

Proposed solution

A slew rate will be applied to the hover thrust used for throttle scaling. This will allow the hover throttle to gradually adjust towards the estimated value, improving predictability for the pilot.

Changes

  • Clarify description of MPC_USE_HTE parameter
  • Add slew rate for hover thrust rescaling

@bresch @MaEtUgR

@dawr68 dawr68 force-pushed the hover-thrust-stab-mode branch from d747cb2 to 1b02f9c Compare April 11, 2025 14:54
@MaEtUgR
Copy link
Member

MaEtUgR commented Apr 11, 2025

I added some suggestions I had and we discussed some of them in person.

Copy link
Contributor

@dakejahl dakejahl left a comment

Choose a reason for hiding this comment

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

Thanks! Shouldn't we also respect MPC_USE_HTE? I know it's an MPC param, but now that the HTE is used in manual mode I think it should apply to both.

@dawr68
Copy link
Contributor Author

dawr68 commented Apr 14, 2025

Thanks! Shouldn't we also respect MPC_USE_HTE? I know it's an MPC param, but now that the HTE is used in manual mode I think it should apply to both.

The thing is, some users may still want to use HTE for Position mode, while keeping the estimate disabled for throttle curve rescaling in stabilized mode. In this PR, I tried to make it clear in the description of MPC_USE_HTE that this parameter is not used in mc-stabilized mode.

@dawr68
Copy link
Contributor Author

dawr68 commented Apr 14, 2025

Did couple of flight today with throttle curve restaling to HTE. With slew rate on hover thrust estimate the thrust curve became much more predictable and the pilot was able to adopt to throttle rescaling happening in-fight without the vehicle losing altitude
2025-04-14_16-54

bresch
bresch previously approved these changes Apr 17, 2025
@dawr68
Copy link
Contributor Author

dawr68 commented Apr 22, 2025

As the discussion around proposed parameters arose, it was decided to separate the solution related to jump in throttle curve scaling from changes in parameters. So now on, this PR will focus only on solving scaling issue

MaEtUgR
MaEtUgR previously approved these changes Apr 22, 2025
Copy link
Member

@MaEtUgR MaEtUgR left a comment

Choose a reason for hiding this comment

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

Thanks for doing the adjustments.
I just realized me merging #24664 generated conflicts 🙈 I can fix them if you like.

@MaEtUgR MaEtUgR dismissed stale reviews from bresch and themself via 6325f22 April 22, 2025 14:08
@MaEtUgR MaEtUgR force-pushed the hover-thrust-stab-mode branch from 0c915bd to 6325f22 Compare April 22, 2025 14:08
Copy link

No flaws found

Copy link
Member

@MaEtUgR MaEtUgR left a comment

Choose a reason for hiding this comment

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

I just fixed the conflicts which were only related to neighbouring lines that I had removed in #24664

@MaEtUgR
Copy link
Member

MaEtUgR commented Apr 22, 2025

So now on, this PR will focus only on solving scaling issue

The pr still adds the originally intended options but I'm following up with a pr to reduce the number of options if that's ok. No need to delay the fix for unexpected throttle scaling jumps on the main branch here. Thanks for your efforts 🙏

@MaEtUgR MaEtUgR merged commit f08d01b into PX4:main Apr 22, 2025
66 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in PX4 v1.16 Release Apr 22, 2025
@MaEtUgR
Copy link
Member

MaEtUgR commented Apr 22, 2025

Here's one follow up reducing configuration options: #24751

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

Successfully merging this pull request may close these issues.

5 participants