Northeastern-Electric-Racing / ProteusMC

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

[RTOS] - Implement Phase Observer #10

Closed nwdepatie closed 5 months ago

nwdepatie commented 9 months ago

Current Features

Linked to #3 and #9, maybe #6 if we use voltages

Desired Additional Features

We need to create an RTOS task that continually samples the characteristics of each phase. To start out with, we want to read in the current. This task can be either interrupt or polling based, but should probably be interrupt based and speed limited only to the ADC interrupt itself. This task should then put the data into a queue to make it available to higher level control logic.

Screenshots (as needed)

No response

nwdepatie commented 5 months ago

Implemented in an interrupt-based approach to sync with PWM signals