|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: WPILib Mecanum Function Not Strafing Properly
Are the rollers on your wheels making an X or an O from the top. The need to make an X from the top (O form the bottom).
Two of your motors should be inverted (in code, or by switching the pos and ground). This is because the motors on one side will spin in the oposite direction on one side of the bot when they are given the same signal. Are you Using C++, Java, or LabView? |
|
#2
|
|||
|
|||
|
Re: WPILib Mecanum Function Not Strafing Properly
Quote:
I'm pretty sure they're properly inverted because forward and rotation worked, just not strafe. I figure that since we'd be using the RobotDrive class (I thought it went without saying due to the forum I'm in, we're using C++) it was naturally set up for the inverted motors and did it automatically. |
|
#3
|
|||||
|
|||||
|
Re: WPILib Mecanum Function Not Strafing Properly
If you had control of the front motor on one side swapped with the rear motor on that side, you'd probably get the results you're seeing. Start by verifying that the motors you're telling the code about are actually on the corners you're telling it they're on.
|
|
#4
|
|||
|
|||
|
Re: WPILib Mecanum Function Not Strafing Properly
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|