Northeastern-Electric-Racing / ProteusMC

Our fully custom, in-house dual HV motor controller
2 stars 0 forks source link

#10 phase observer #40

Closed MandarinPine18 closed 5 months ago

MandarinPine18 commented 7 months ago

Changes

Added a message queue to process incoming phase current measurements and registered a callback for the ADC DMA to put those readings into the queue.

Test Cases

It builds.

Checklist

It can be helpful to check the Checks and Files changed tabs. Please reach out to your Project Lead if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.

Closes #10

nwdepatie commented 7 months ago

Uh the commit history looks super weird, might make it hard to review

MandarinPine18 commented 7 months ago

Yeah I'm not terribly certain why it looks like that - attempted to update my branch and just resolved conflicts as they came

nwdepatie commented 5 months ago

Per my entire microprocessor project, the method of sampling phases is entirely different and we are synchronizing ADC reads with PWM to sample while the gates are open