Skip to content
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

Freerb/tms fix #300

Closed
wants to merge 3 commits into from
Closed

Freerb/tms fix #300

wants to merge 3 commits into from

Conversation

BlakeFreer
Copy link
Contributor

Fixes bugs from #254

Previously, TMS would appear to crash upon boot. This was caused by the `HAL_CAN_RxFifo0MsgPendingCallback` interrupt being triggered when the BMS sent CAN messages, even though the TMS does not care about them. TMS did not call `HAL_CAN_GetRxMessage()` in the interrupt to clear the interrupt flag, so the interrupt continued to fire, preventing the main code from running. This commit fixes the problem by handling the messages. Also fixes the temperature calculation which is now explicitly calculated from the sensor datasheet table and the physical hardware circuit.
@BlakeFreer BlakeFreer marked this pull request as ready for review November 8, 2024 01:33
@BlakeFreer BlakeFreer closed this Nov 8, 2024
@BlakeFreer
Copy link
Contributor Author

didn't mean to reopen this

@BlakeFreer BlakeFreer deleted the freerb/tms-fix branch November 8, 2024 01:35
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.

1 participant