stabilizer
stabilizer copied to clipboard
RTIC Monotonic Frequency limits Driver header ADC sampling rate
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.
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