I’ve recently began coding the Gyro function for out robot and its going relatively well. However it would be incredibly helpful if anyone had a working github with gyro implemented. Preferably mecanum drive but anything will suffice. I just want to double check what I have to make sure i’m on the right track.
We are using mecanum with a gyro. Here’s our (command-based) code so far. Feel free to ask any questions
Gyro subsystem:
Mecanum subsystem:
Edit: I realize a lot of the stuff in my mecanum subsytem you probably won’t need if you are just trying to get it driving around. If that’s the case, you may want to just make a method similar to my setMotorsSimple() one and then call that method in a command similar to my DriveMec. If you give me more detail about what you are trying to do with the gyro, then I can go from there