stabilizer icon indicating copy to clipboard operation
stabilizer copied to clipboard

RTIC Monotonic Frequency limits Driver header ADC sampling rate

Open nkrackow opened this issue 1 year ago • 1 comments

Because the RTIC Monotonic Frequency is the maximum frequency at which RTIC tasks can be scheduled this currently limits the sample rate for the Driver header ADC since it is scheduled by RTIC. I set the RTIC Monotonic Frequency to 10_000 for now but there might be other repercussions and for higher rates this might require eg. using a Timer to trigger conversions.

nkrackow avatar Jul 25 '22 09:07 nkrackow

I would highly recommend looking in to using a timer to trigger driver sampling - it will be subject to far less jitter than RTIC tasks and would likely be simpler from a code perspective. This is what Stabilizer ADC sampling does as well, so you likely can model the driver ADC driver on the stabilizer ADC drivers

ryan-summers avatar Jul 25 '22 09:07 ryan-summers