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

Update interrupt priorities so ADC can not get preempted #496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CatoLynx
Copy link

After running my vehicles with this change for quite a while now, I am confident in saying that this has fixed an issue that would cause random MOSFET shorts. I suspect that the overcurrent detection interrupt was just a tiny bit too slow because it was preempted. This commit fixes that.

@Candas1
Copy link
Collaborator

Candas1 commented Jun 11, 2024

Thanks for sharing, I will try it on my combat robot end of this month lol

@Candas1
Copy link
Collaborator

Candas1 commented Jun 11, 2024

I think it can make things worse for PWM and PPM variants, but ideally those variants should use input capture to not be impacted by the interrupt execution timing

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.

2 participants