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

Bigquad early access fix #1131

Merged
merged 4 commits into from
Oct 18, 2022

Conversation

victorhook
Copy link
Contributor

Enabled external battery voltage measurements to be used as system votlage (useful for Big Quad deck).
Updated power state handling to support lowPower state regardless of platform and if Big Quad deck is connected.
Moved constants from source code to kbuild.

interpreted as system voltage when.
This can be handy for BQD.
in Kconfig instead of in source code.
Added them as mili Volts/Amps, because kbuild does
not support floats.
PM status to easier decide what power state
we should be in, regardless of platform.
We still need to know if we're using the BQD though.

if (isPgood && !isCharging)
if (usingBigQuadDeck)
Copy link
Member

Choose a reason for hiding this comment

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

I would like to remove this dependency and have the BiqQuaddeck driver call a function to enable this behavior instead. Something like pmIgnoreChargedState()

Made BQD driver call into pm instead
to ignore charging/charged state, which is needed
for correct low-battery warnings when using BQD.
@victorhook
Copy link
Contributor Author

victorhook commented Oct 13, 2022

I agree that it makes more sense to not have the dependency in the pm.
I made a new public void pmIgnoreChargedState(bool ignore) method in pm to allow other modules to "set" ignore charging state if needed.

@tobbeanton
Copy link
Member

The merge of PR #1132 might create some conflicts.

@tobbeanton tobbeanton merged commit d89b962 into bitcraze:master Oct 18, 2022
@krichardsson krichardsson added this to the 2022.12 milestone Dec 13, 2022
krichardsson added a commit that referenced this pull request Dec 14, 2022
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.

3 participants