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

RTIC Monotonic Frequency limits Driver header ADC sampling rate #569

Open
nkrackow opened this issue Jul 25, 2022 · 1 comment
Open

RTIC Monotonic Frequency limits Driver header ADC sampling rate #569

nkrackow opened this issue Jul 25, 2022 · 1 comment
Labels
driver Issues that regard driver development

Comments

@nkrackow
Copy link
Contributor

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 nkrackow added the driver Issues that regard driver development label Jul 25, 2022
@ryan-summers
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver Issues that regard driver development
Projects
None yet
Development

No branches or pull requests

2 participants