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) |
|
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! |
|
Your gyroscope should be going Counter Clockwise Positive. |
|
Your module locations are in inches and |
|
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. |
|
If the drive train slows down while at a rotation and strafing increase your current limits. |
|
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. |
|
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 |
|
If your robot is always drifting to one side check your weight distribution! |
|
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. |
|
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. |
|
If this happens, you should
IMG_7837.mov |
|
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. |
|
If you need to invert your gyro but doing so messes up your driving try setting P to negative in controllerproperties.json. |
|
If you need to invert your motors but doing so messes up your driving try setting P to negative in pidfproperties.json. |
|
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 |
|
Robot cannot turn 180 with path planner. Try inverting your drive motors. IMG_7951.movIMG_7952.mov |
|
If pth planner is consistently traveling a offset, check wheel diameters |
|
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 |
|
Ensure your motor ID's are bellow 40. |
|
Extreme network utilization could cause issues which disable motors temporarily. Use |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions