Skip to content

Feat hvfb test#3791

Open
noah-m wants to merge 5 commits into
UBC-Thunderbots:masterfrom
noah-m:feat-hvfb-test
Open

Feat hvfb test#3791
noah-m wants to merge 5 commits into
UBC-Thunderbots:masterfrom
noah-m:feat-hvfb-test

Conversation

@noah-m

@noah-m noah-m commented Jun 21, 2026

Copy link
Copy Markdown

Description

Testing Done

Resolved Issues

Length Justification and Key Files to Review

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

Comment thread src/software/embedded/motor_controller/stspin_motor_controller.cpp Outdated
Comment thread src/software/embedded/services/power.cpp Outdated
Comment thread src/software/embedded/thunderloop.cpp Outdated
Comment thread src/software/embedded/thunderloop.cpp Outdated
Comment thread src/software/power/charger.cpp
pinMode(ADC_MISO, INPUT);

// Do not touch CH_SEL in this proof-of-concept.
// Hardware should pull CH_SEL low to select CH0.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this comment necessary? Delete if not

digitalWrite(CHRG, HIGH);

// last_charge_edge_ms = millis();
// has_seen_done_since_last_charge_edge = false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove debugging code

Comment on lines +44 to +57
// if (done)
// {
// has_seen_done_since_last_charge_edge = true;
// return;
// }

// Minimal "continuous charging" approximation:
// If the LT3750 previously reached DONE and later DONE deasserts, produce
// another rising edge to start a new charge cycle.
// if (has_seen_done_since_last_charge_edge &&
// (millis() - last_charge_edge_ms) > MIN_CHARGE_RETRIGGER_INTERVAL_MS)
// {
// chargeCapacitors();
// }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove commented code

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