-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Consider the throttle load for battery voltage calculation #1211
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3a0fc36
Consider the throttle load for battery voltage calculation
LorenzMeier 3db78a4
commander: Warn at 18 and 9% battery remaining instead of 25 and 10% …
LorenzMeier 5d24898
Fix low voltage warning threshold to 9%, not 90%
LorenzMeier e21cb64
Merge branch 'master' of github.com:PX4/Firmware into battload
LorenzMeier 3935540
Set full voltage correctly to ensure percentage range fits. Force all…
LorenzMeier 264fe88
Fixed load voltage calculation
LorenzMeier c95de36
commander: Add missing parameter definition
LorenzMeier 25d1cc3
Final value for battery load param default
LorenzMeier afff123
Add PX4IO voltage dataset and linear fit
LorenzMeier 956c084
Fit IO voltage estimation using a new dataset, cross-validated with a…
LorenzMeier 0fc73a1
Fix comment, missing brace in comment
LorenzMeier 331623b
Fix missing line endings
LorenzMeier 178b0f7
Cross-check with nominal values from divider
LorenzMeier 07d1158
Rely on theoretical value, as the closed-loop test with multimeter su…
LorenzMeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.4V was definitely too high. 3.3V is better, but might still be a bit high. We could consider going to 3.25 or 3.2 (note that with default params under load empty == 3.2 - 0.1V then).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After 3.4V voltage drops much faster and deep discharge (3.2 is deep enough!) is very bad for battery health. Default parameters should be tuned for safe flight. With 3.2V copter may crash after 3 seconds after first warning if user forgot to charge battery, it may be not enough to land.
Of course it depends on battery model, but I would like to stay on safe side with 3.4V. If user wants to kill the battery, he can change parameter.
The problem with voltage drops on high thrust should be solved by internal resistance compensation I think, that you are already trying to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, convinced - I'll change this back.