Hello, this year we are using neo engine and spark max driver for swerve drive. As the Swerve library, we are using YAGSL, which we used last year, but while the drive engines should be working at full power according to deadband, they are spinning very slowly. What could be the reason or is there an alternative 2025 neo swerve code? (We use Wpilib and all other tools 2025 version)
It sounds like a pid or FF problem but it’s a wild guess. I didn’t get the chance to work woth yagsl 2025 yet
İbsolved but now bacak right angle motor spark red and green blink
one spark is red and the other is green or red and green together one motor?
red and green together
Which drive command are you using? Is it one from YAGSL-example? The red and green blinking means alternating forward and reverse commands to the motor. Rapid blinking can look like both at the same time. If there’s little or no movement, that can be normal for a command running a speed control loop. It could also be an indication that PID gains are too high or another problem. I’ve been using YAGSL 2024 on the bot and 2025 in simulation a lot recently. Can you share a link to your repo? There’s been a lot of changes to 2025 over the last few weeks, so the exact version may make a difference.
My team is having the same issue with neos and spark maxes on drive. How did you resolve this issue?
To clarify, all of the YAGSL modes run speed control on the drive and angle control at the individual module level. Some more advanced modes have robot level chassis speed and/or heading control loops which can complicate things when debugging. Red / green blinking without movement or chattering may not be an issue.
I change deploy/swerve/physicalproperties/drive diameter 0.25
Drive diameter is in units of inches, so you have other issues with the configuration files. There were changes between earlier 2024 and now in the format of those files, so check your config files. rampRate is typically 0.25. Did you mean that one?
Physical Properties Configuration | YAGSL
You can also use the web config tool:
YAGSL Tuning Webpage
You should also go back and review the change notes for the releases between your last working configuration and now to see if you missed anything important. They are very helpful.
I dont mean rampRate i change diameter and problem fixed maybe im wrong but it works
The diameter being off would cause the issue you’re experiencing. The rampRate could cause overvolting so your drivebase takes too much power for a moment causing everything to stutter. Might not be an issue for now but can cause problems on a full robot.
Thanks but how can i solve the slow Drive motor
Sorry, to solve the slow drive motor you should increase the max speed passed into SwerveParser.createSwerveDrive()
If you send a link i can point you to the line.
Do you happen to see an error in your driver station log?
What swerve modules are you using?
Mk4i L2 with Neo motors and spark max
Do you have a link to your code?
No but i can upload in github
Please do! It will really help debugging this
Okey i am upload in after 2 hours because now i m in the School
here you are the code