|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: Can't get motors to spin correct way.
Quote:
RobotDrive chassis = new RobotDrive(1, 2); private final Joystick leftStick = new Joystick(1); private final Joystick rightStick = new Joystick(2); And then call this: chassis.TankDrive(leftStick, rightStick); If you then have a side spinning in the wrong direction, swap the MOTOR wiring on the Talon OUTPUT. (Don't swap the input wiring, as you'll fry the talon.) |
|
#17
|
|||
|
|||
|
Re: Can't get motors to spin correct way.
...so flip the polarity of the wires at the output of the speed controllers.
|
|
#18
|
|||
|
|||
|
Re: Can't get motors to spin correct way.
Okay, we discussed reversing the output wires on the Talons, but our team members are worried that in inspection they will tell us we can't have red to negative and black to positive. Has anybody had to reverse hot/cold wires and gotten in trouble for it, or were inspectors okay with it?
|
|
#19
|
|||
|
|||
|
Re: Can't get motors to spin correct way.
Quote:
MANY teams have the speed controller output polarities flipped on one side of the robot. |
|
#20
|
||||||
|
||||||
|
Re: Can't get motors to spin correct way.
Quote:
However, I do recommend getting to the bottom of the software issue. It may be important for some other system in the near future. Last edited by Joe Ross : 20-01-2014 at 18:30. |
|
#21
|
|||||
|
|||||
|
Re: Can't get motors to spin correct way.
Before this turns into another thread discussing the merits of inverting the motors physically or in code, it's already been done.
http://www.chiefdelphi.com/forums/sh...d.php?t=122186 |
|
#22
|
|||
|
|||
|
Re: Can't get motors to spin correct way.
For what its worth, IIRC the TankDrive() method of the RobotDrive class automatically takes into account that you have to turn one side backwards.
|
|
#23
|
|||
|
|||
|
Re: Can't get motors to spin correct way.
Thanks for the help, we ended up just flipping around the 2 PWM cables that are going out the the 4 talons and that fixed out problem. Side question: I know we need a different talon for each motor, but do we need a different PWM cable for each talon, or can we use PWM splitters?
|
|
#24
|
||||
|
||||
|
Re: Can't get motors to spin correct way.
PWM splitters are legal, and in many cases, recommended.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|