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

powerCheck: add power redundancy check #15050

Merged
merged 1 commit into from Jun 10, 2020

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Jun 8, 2020

Describe problem solved by this pull request
The user is unaware of a broken or disconnected redundant power module.

Describe your solution
A parameter specifies what the redundancy level for 5V rail supply needs to be and a check makes sure that it's available before taking off.

Test data / coverage
Successfully tested with two INA266s and the redundancy level COM_POWER_COUNT on 2 and with defaults and just INA266 or ADC power module.

Additional context
Wider context is a closer review of possible power supply cases e.g. #14899

@dagar
Copy link
Member

dagar commented Jun 8, 2020

This is an acceptable interim solution, but I still wonder if we need a centralized system power configuration. Something where you would explicitly configure the purpose of each available input, then the system could automatically enforce the appropriate pre-flight checks.

A parameter spcifies what the redundancy level for 5V rail supply
needs to be and a check makes sure that it's available before
taking off such that the user is aware of a broken or disconnected
redundant power module.
@MaEtUgR MaEtUgR force-pushed the detect-missing-redundant-power-supply branch from 0ae4ecf to d812c31 Compare June 10, 2020 09:09
@MaEtUgR
Copy link
Member Author

MaEtUgR commented Jun 10, 2020

centralized system power configuration
then the system could automatically enforce the appropriate pre-flight checks

I agree and I would even say the checks should not be limited to pre-flight. The user should also get a warning if something fails in air not just the next time he tries to fly. This is a minimal solution to at least notice the requirements are not met in the first place.

@dagar dagar merged commit 7ff2537 into master Jun 10, 2020
@dagar dagar deleted the detect-missing-redundant-power-supply branch June 10, 2020 14:13
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.

None yet

2 participants