Skip to content

Conversation

@mjmagee991
Copy link
Contributor

VCU implementation for the 2025 track day

@mjmagee991 mjmagee991 requested review from a team, aclowmclaughlin and mjh9585 August 15, 2025 00:29
Copy link

@tmb5932 tmb5932 left a comment

Choose a reason for hiding this comment

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

Just some questions, mainly about leftover todo comments


void TrackMCuC::mcDischargingState() {
if (stateChanged) {
// TODO: Tell MC to discharge
Copy link

Choose a reason for hiding this comment

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

i feel like this might be important to have implemented, but ill take your word for it otherwise...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This would improve safety, but I just checked the datasheet and realized we can't do it with our current configuration, so we'll have to wait until the semester for this

Copy link

Choose a reason for hiding this comment

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

cmon man, you know im the one looking at VCU this semester. Stop giving me more things to do...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be clear, no one should ever use this code again after Sunday. You should delete this branch after you make something useful

Comment on lines 147 to 151
* @param priv[in] The MCuC instance that contains the queue the message is to be added to. Must be an vcu::MCuC*
*/
void powertrainCANInterrupt(io::CANMessage& message, void* priv) {
void accessoryCANInterrupt(io::CANMessage& message, void* priv) {
auto* mcuc = (vcu::MCuC*) priv;
if (mcuc != nullptr) {
Copy link

Choose a reason for hiding this comment

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

Reasoning to change this to accessory can interrupt? Also the docs comment on line 145 still says "powertrain CAN line"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not mean to edit this file. That's my bad

Copy link

Choose a reason for hiding this comment

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

ok, well the same changes are made in targets/REV3-Hardmon/main.cpp. I assume those are also accidental

Copy link

@tmb5932 tmb5932 Aug 15, 2025

Choose a reason for hiding this comment

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

As this is merging into a branch, and seemingly just for this Trackday, I assume this wont end up in main? so doesnt really matter if these are reverted, as they arent being used?

@mjmagee991 mjmagee991 requested a review from a team August 15, 2025 01:33
Copy link

@mjh9585 mjh9585 left a comment

Choose a reason for hiding this comment

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

Looks good, just one change for the future.

Comment on lines +66 to +72
case 0x2D0A:
highestCellTemp = payload[6];
lowestCellVoltage = (((uint16_t) payload[0]) << 8) + payload[1];
break;
case 0x2C0A:
bmsMasterTemp = (((uint16_t) payload[0]) << 8) + payload[1];
break;
Copy link

Choose a reason for hiding this comment

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

Can you explain a little more where these values come from? Defining the values as constants would help make this more readable.

Copy link
Contributor

@aclowmclaughlin aclowmclaughlin left a comment

Choose a reason for hiding this comment

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

Looks good. Sorry took so long to review (I know the race is probably already happening). Stuff came up but I knew that Heller and Travis had it covered.

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.

5 participants