Hello, my team is currently using falcon swerve (planning to switch to krakens) with the mk4i modules l3 gearing. I have questions regarding the speed and acceleration of the robot. My swerve code is here. During tele-op what is the maximum speed and acceleration of the robot? How do I find it and what are the recommended values for those variables. I am guessing that maxSpeed and maxAngularVelocity sets that. I also want to know the same thing for autonomous. I am guessing that kMaxSpeedMetersPerSecond and kMaxAccelerationMetersPerSecondSquared determines those values for autonomous.
You can, of course, use your total calculated mass and drivetrain gearing to calculate your max acceleration and max velocity. There are various calculators on the net like Ilite that can help.
However, that leaves a lot of inaccuracies since they are only models. Another option is to drive your robot and record the velocity and acceleration.
You can use some of the helper methods on the WPILib feedforward classes to determine simultaneously-achievable motion constraints with gains from SysId or ReCalc.