YAGSL setup ROBOT_MASS

Hey everyone, just looking for an answer to a relatively simple question:
In the Constants file for the YAGSL example project (which I am basing my program off of), there is a ROBOT_MASS variable, but I don’t know how to determine what we should do for our own robot.
here is the line:

 public static final double ROBOT_MASS = (148 - 20.3) * 0.453592; // 32lbs * kg per pound

Do any of you know how I might convert this to my use? Saying for example that our robot weighs 100 pounds?

It’s completely optional but you could use it to limit ypur velocity by calculating momentum which is done for you in a little known function in SwerveMath.limitVelocity

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.