Okay, so we bought AndyMark Swerve and Steer modules because they were all we could find at the time of purchasing we have managed to get the wheels to go forwards and backwards, but the rotation is currently super wacky.
First off, we cloned the repository from the following video and have been trying to modify it to fit our robot, but have so far not been successful. This is the first year we have used Java, and we don’t have anybody with a ton of programming experience with Java on our team either.
Secondly I’ll layout exactly how we got to where we’re at.
- We purchased andymark swerve and steel pre-assembled modules
- We swapped the CIM motors that came on them with NEO Brushless Motors.
- We kept the PG71 Gearmotors as the steering motors. (These came with built in “Two Channel Hall Effect” encoders.)
- We purchased MA3-Absolute Encoders from Andymark and connected them to the modules in the proper place and attached them with 40 tooth gears.
- We wired everything.
So at this point in time we have the NEO Brushless motors as drive motors and those are connected via SparkMax’s on the CAN Network.
The PG71 Gearmotors are setup also using SparkMax’s on the CAN Network.
We also added MA3 Absolute Encoders to the modules and wired those into the ANALOG ports on the RoboRIO.
We have a NavX2 plugged into the big port in the Middle of the RoboRIO and the lights come on.
Right now I think our biggest problem is that the code we have started with wasn’t written for the same swerve modules, and we don’t know all the parts of the code that need to be changed to work with our Swerve and Steer Modules.
Does anybody reading this have Java code that worked for Andymark Swerve and Steer modules?
Or if not Java then possibly LabView. We are struggling a lot with this, and are willing to go down some other routes if needed.
Otherwise with our code in it’s current state the next problem we have to conquer is getting our chassisspeeds variable inputed into the proper spot. (We can go deeper on explaining this if somebody reading this wants to help, but I’ve already put a lot on here and don’t want to overdo it right now)
If anybody on here has gotten Andymark Swerve and steer to properly drive could we take a look at your code.
Anymore questions about our setup feel free to reply, and we’ll try to respond as quickly as possible.
Thanks!