Skip to content

[VCU] stompp fix#312

Draft
matt-mekha wants to merge 1 commit into
mainfrom
etech
Draft

[VCU] stompp fix#312
matt-mekha wants to merge 1 commit into
mainfrom
etech

Conversation

@matt-mekha

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lhre-2026 Ready Ready Preview, Comment Jun 15, 2026 6:21am

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the default brake system encoder (BSE) pressure thresholds and adds a TODO comment in TorqueMap.c noting that torque_derated is currently unused. The reviewer highlighted a significant safety and reliability concern: because torque_derated is unused, battery cell voltage and temperature derating are non-functional, meaning the VCU will not protect the battery cells from over-discharge or thermal stress. It is recommended to update subsequent torque processing stages to consume torque_derated instead of torque_lookup_output.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

out->derate_factor_cell_voltage = compute_low_cell_voltage_derate(out->open_circuit_cell_voltage, params);
out->derate_factor_cell_temp = 1.0f; // TODO: cell temp derate

// TODO - torque_derated isn't even used, whoops. So derates don't do anything

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.

high

Leaving a TODO acknowledging that torque_derated is unused means that battery cell voltage and temperature derating are completely non-functional. This is a significant safety and reliability concern, as the VCU will not protect the battery cells from over-discharge or thermal stress under high load. Please ensure that the subsequent torque processing stages (such as power limiting or traction control) consume torque_derated instead of torque_lookup_output to make the derating logic effective.

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.

1 participant