So, my team is trying to code a Holonomic Drive (Edit: It’s an X-Drive) for this year’s competition and I am just trying to understand how to program the controller for it (like the concepts, not the actual code- although that would be helpful).
Can someone please explain it to me (also I know how to code at an intermediate level, so please go easy-ish on me)?
The search bar is your friend, searches for terms like “x-drive programming” returned lots of results with discussion of this topic.
This thread looked particularly useful; it’s got code examples in ROBOTC but shouldn’t be too hard to write equivalent code in whatever V5 programming setup you prefer.
So, I made a sample code for our x-drive and it can go forward and backward and it can turn, but it won’t strife left to right or go diagonal. Am I missing something? (I followed the threads and this is what I came up with)