Skip to content

Shepherd Fixes and Improvements#152

Open
KSMehta11 wants to merge 58 commits into
developfrom
118-ow-detect
Open

Shepherd Fixes and Improvements#152
KSMehta11 wants to merge 58 commits into
developfrom
118-ow-detect

Conversation

@KSMehta11

@KSMehta11 KSMehta11 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Added cell open wire detection and reporting on CAN
  • Added S-ADC percell voltage reporting on CAN
  • Fixed state machine fault evaluation, transitions, charging, and balancing behavior.
  • Fixed DCL/CCL CAN flickering, updated P50B configurations, and corrected charge-current fault handling.
  • Improved cell temperature sanitizer logic
  • Added sanitizer unit tests and updated state machine, DCL, and CCL tests.
  • Ported HV plate DTI handling, DTI/charger CAN parsing, and precharge updates from develop-dti.
  • Updated generated CAN code and supporting driver dependencies.

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please reach out to your Project Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • No merge conflicts
  • All checks passing
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #118 #150

@KSMehta11 KSMehta11 self-assigned this Jul 14, 2026
@KSMehta11 KSMehta11 linked an issue Jul 14, 2026 that may be closed by this pull request
@KSMehta11
KSMehta11 changed the base branch from develop to fixes July 14, 2026 07:24
@KSMehta11 KSMehta11 linked an issue Jul 14, 2026 that may be closed by this pull request
@KSMehta11
KSMehta11 changed the base branch from fixes to develop July 19, 2026 01:06
@KSMehta11
KSMehta11 marked this pull request as ready for review July 19, 2026 23:23
@KSMehta11 KSMehta11 changed the title Add Cell Open Wire Detection Shepherd Fixes Jul 20, 2026
@KSMehta11 KSMehta11 changed the title Shepherd Fixes Shepherd Fixes and Improvements Jul 20, 2026
Comment thread Core/Src/analyzer.c
"[OW] Open wire IC%u C%02u: even=%.3f V, odd=%.3f V, drop=%.3f V (%.1f%%)",
chip + 1U, cell + 1U, even_voltage,
odd_voltage, drop_voltage, drop_percent);
}

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.

lets trigger critical fault here for safety

@KSMehta11 KSMehta11 Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated to trigger critical fault. I have a 40 second debounce setup currently, so it has a chance to run open wire test atleast twice before triggering shutdown.

Comment thread Core/Src/segment.c
0.0f;

if ((chip % 2U) == 0U) {
send_alpha_cell_s_adc_data(

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.

we can limit bus traffic if we send two (or more) cells per message potentially

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can address that in a follow up ticket.

@jr1221 jr1221 left a comment

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.

lfg

Comment thread Core/Inc/datastructs.h Outdated
Comment thread Core/Inc/state_machine.h Outdated
Comment thread Core/Src/adi6830_interaction.c
Comment thread Core/Src/analyzer.c Outdated
Comment thread Core/Src/can_handler.c
Comment thread Core/Src/segment.c Outdated
Comment thread Core/Src/state_machine.c Outdated
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.

Show S cell voltages OW Cells

3 participants