|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Help, Robot turns wrong
That didn't work. What did happen though was the robot's other axis was inverted, making the robot drive perfectly if you hold the joystick backwards.
|
|
#2
|
||||
|
||||
|
Re: Help, Robot turns wrong
We've had this problem before in C++ I know how to fix it in LabVIEW... Basically you have to invert the control using a boolean. I do not know how to do it in C++ but it is something similar.
Another way to troubleshoot without code is to switch the polarity of the cables on the MOTOR side of the Jaguar/Talon/Victor and switch the PWMs if needed as well. You could make something along the likes of a truth table as well if that helps. I would suggest switching the polarity of one motor, see if that fixes it and if not put it back to how you originally had it. Next you would try switching the polarity of the other motor. |
|
#3
|
|||
|
|||
|
Re: Help, Robot turns wrong
As always, follow the code.
Carefully. With a piece of paper and pen. Write down numbers, and how each line of code changes those numbers. From Joystick to Motor. Somewhere you have a sign going the wrong way, or more likely, not understanding what the joystick is giving you. This is a very common issue. Have your electrical crew check their wires, to be sure, but this sounds like you have to check your code. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|