Important Debugging Steps #47
Replies: 22 comments 14 replies
-
Please make sure the magnets in your magnetic encoders (if you are using them) are glue'd into the shaft and have a good reading (green light on CANCoders) |
Beta Was this translation helpful? Give feedback.
-
If you are using a NavX please recalibrate in the orientation you are using it in. ONCE and make sure the robot doesn't move! |
Beta Was this translation helpful? Give feedback.
-
Your gyroscope should be going Counter Clockwise Positive. |
Beta Was this translation helpful? Give feedback.
-
Your module locations are in inches and |
Beta Was this translation helpful? Give feedback.
-
If your wheels spin out while running try increasing your amperage as a temporary fix, but there may be something wrong with a swerve module. |
Beta Was this translation helpful? Give feedback.
-
If the drive train slows down while at a rotation and strafing increase your current limits. |
Beta Was this translation helpful? Give feedback.
-
Ensure the robot heading is correct by rotating the robot and looking at the gyro on Shuffleboard. The angle should increase while moving counter clockwise. |
Beta Was this translation helpful? Give feedback.
-
Advantage Scope (https://github.com/Mechanical-Advantage/AdvantageScope/releases) to see what the swerve drive is commanded to do vs what it actually does. Values are published to |
Beta Was this translation helpful? Give feedback.
-
If your robot is always drifting to one side check your weight distribution! |
Beta Was this translation helpful? Give feedback.
-
If your modules periodically re-adjust themselves to different angles check to make sure your absolute encoders are the correct ones corresponding to your angle motors. |
Beta Was this translation helpful? Give feedback.
-
x and y are measured from center of wheel to center of robot. Robot odometry will not be accurate if this is incorrect especially during auto. |
Beta Was this translation helpful? Give feedback.
-
If this happens, you should
IMG_7837.mov |
Beta Was this translation helpful? Give feedback.
-
If your swerve drive is inverting when changing orientation (front and back change) try inverting your drive motors. Like this. IMG_0942.MOVYou may or may not have to invert your gyroscope following this. |
Beta Was this translation helpful? Give feedback.
-
If you need to invert your gyro but doing so messes up your driving try setting P to negative in controllerproperties.json. |
Beta Was this translation helpful? Give feedback.
-
If you need to invert your motors but doing so messes up your driving try setting P to negative in pidfproperties.json. |
Beta Was this translation helpful? Give feedback.
-
GREASE YOUR GEARS!!! At least every day or once every 4 matches. https://www.chiefdelphi.com/t/frc-95-the-grasshoppers-2023-build-thread/419845/137 |
Beta Was this translation helpful? Give feedback.
-
Robot cannot turn 180 with path planner. Try inverting your drive motors. IMG_7951.movIMG_7952.mov |
Beta Was this translation helpful? Give feedback.
-
If pth planner is consistently traveling a offset, check wheel diameters |
Beta Was this translation helpful? Give feedback.
-
Hello, member of 2811 here. We got Yagsl running with navx, neos and srx mag encoders on a swerve X chassis. For some reason, the right stick does nothing and doesn't make the robot turn. I have tried to switch the axis it uses in robotcontainer but that didn't improve anything. Though when pressing B on the logitech f310 (button 1 if memory serves) it rotates sometimes. Any help is very appreciated. IMG_2582.MOV |
Beta Was this translation helpful? Give feedback.
-
Ensure your motor ID's are bellow 40. |
Beta Was this translation helpful? Give feedback.
-
Extreme network utilization could cause issues which disable motors temporarily. Use |
Beta Was this translation helpful? Give feedback.
-
When you are tuning your absolute encoder offsets FACE THE BEVELS THE SAME WAY.
If your odometry is always a bit off please check you wheel diameters, the grip tape might be worn and smaller than before.
DISABLE HEADING CORRECTION IF CONTROLLING ROBOT HEADING VIA VELOCITY INSTEAD OF DESIRED ANGLE
Make sure your absolute encoder is incrementing in the right direction! If your wheels never get to the right alignment they may need to be inverted!
If your wheels are constantly re-adjusting double check your angle gear ratio's.
Beta Was this translation helpful? Give feedback.
All reactions