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

Manual idle current setting #23914

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Manual idle current setting #23914

merged 2 commits into from
Nov 11, 2024

Conversation

alexcekay
Copy link
Member

@alexcekay alexcekay commented Nov 8, 2024

Solved Problem

Certain ESCs current measurements are inaccurate in case of no load. This is especially important for easier ESCs that only have a CURR wire and only provide the current via an analog current.

Solution

A new parameter BAT${i}_I_OVERWRITE has been added that allows to manually set the idle current. The behavior is as follows:

  • When the system is armed, the measured current is used.
  • When the system is unarmed, the value given via the parameter is used.

Changelog Entry

For release notes:

Feature Added parameter to manually set the idle current

Test coverage

  • Has been tested on the bench

@alexcekay alexcekay requested a review from niklaut November 8, 2024 15:52
@alexcekay alexcekay marked this pull request as ready for review November 11, 2024 08:16
Copy link
Contributor

@niklaut niklaut left a comment

Choose a reason for hiding this comment

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

Yes, but perhaps the param should be called BAT${i}_I_IDLE_OVERWRITE for clarity?

@alexcekay
Copy link
Member Author

alexcekay commented Nov 11, 2024

That is exactly the way I wanted to name the parameter 👍 but yeah param names are limited to 17 chars

@alexcekay alexcekay merged commit f47719d into main Nov 11, 2024
52 of 56 checks passed
@alexcekay alexcekay deleted the pr-idle-curr branch November 11, 2024 10:40
mrpollo pushed a commit that referenced this pull request Nov 12, 2024
* Added param to overwrite analog idle current measurement

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

Successfully merging this pull request may close these issues.

2 participants