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

(DO NOT MERGE) Code Review: Bling Strobe + Battery #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cooking-hambrops
Copy link
Contributor

DO NOT MERGE. CODE CHECK AND REVIEW ONLY.
-Added different colour strobing (flashing)
-Added low battery Bling

double voltage = PowerDistribution.ModuleType.class.m_pdp.getVoltage();
SmartDashboard.putNumber("Voltage", voltage);

while (checkBatteryVoltageConstantly = true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't put a while loop here.
Checking battery and set bling could be in periodic method of some command.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest to remove the codes related to voltage. This pull request is only for bling.
Create a new branch which is only for battery voltage detection.

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