-
Notifications
You must be signed in to change notification settings - Fork 0
Track Day Let's Pray #4
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
base: feature/aclowmclaughlin/VCU_RTOS
Are you sure you want to change the base?
Track Day Let's Pray #4
Conversation
tmb5932
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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
| * @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) { |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
mjh9585
left a comment
There was a problem hiding this 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.
| 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; |
There was a problem hiding this comment.
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.
aclowmclaughlin
left a comment
There was a problem hiding this 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.
VCU implementation for the 2025 track day