YAGSL Code Issue

Hi, I’m a team member from Team 7636. This is our first time using YAGSL, Neo, NAVX, and absolute encoders (connected to Spark MAX) for our swerve, we have some issues with those and wonder if anyone can help us.

Here is our code GitHub, and we are using YAGSL-Example, for our Swerve Drive template.

Our main issue is that when we enabled the robot, every motor kept running, and we couldn’t control it.

Another issue is that every “position conversion factor” in Spark MAXes were changed from 1 to 28.125 automatically. Is that correct?

Any help is appreciated.

For starters these need to be filled out, the value is in inches.

What is the swerve module you are using. The position conversion factor is supposed to change too. However I dont think that is what you want in this case. If you want the position conversion factor for your steering/angle/azimuth motors to be 360 change this line

to

swerveDrive = new SwerveParser(directory).createSwerveDrive(maximumSpeed, 360, driveConversionFactor);

Thanks for your help. We solved the problem.

1 Like

What was the issue?