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

(Question) How to enable FOC for falcons mk4i? #55

Open
Wing57 opened this issue Feb 15, 2024 · 2 comments
Open

(Question) How to enable FOC for falcons mk4i? #55

Wing57 opened this issue Feb 15, 2024 · 2 comments

Comments

@Wing57
Copy link

Wing57 commented Feb 15, 2024

What would I have to change it in the code to use the FOC features? For example what would you change the position/velocity voltage methods in SwerveModule.java to? And would you be able to use a fusedcancoder object?

@witherslayer67
Copy link

yup

@ninjadrknss
Copy link

ninjadrknss commented Feb 18, 2024

In the setSpeed function in SwerveModule.java add the lines (CONTROL_LOOP).EnableFOC = true
This is what I did with no errors but I can't tell if it doing anything

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

No branches or pull requests

3 participants