View Single Post
  #5   Spotlight this post!  
Unread 11-02-2014, 21:16
ksafin's Avatar
ksafin ksafin is offline
Registered User
AKA: Kirill Safin
FRC #3992 (Eagles Robotics Xperience)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Delray Beach, FL
Posts: 498
ksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant future
Re: Which motors are PWM 1, 2, 3, 4?

Quote:
Originally Posted by chigskonkwo View Post
We chose Mecanum drive on our code, we didn't code each specific motor.
Luckily it's still pretty simple.

In the code, your programmer had to pass (I'm not our teams programmer, but its something along these lines) either Victor/Jaguar objects, or integers representing PWM ports. For the Mecanum drive class, these will correspond to left motor 1, left motor 2, right motor 1, right motor 2, or something along these lines.

If you find the order that you list the inputs, you can ascertain which PWM should control what motor.

If you want to brute force it, you can always randomly swap PWM's until all the wheels are working correctly. With 4 wheels, there aren't very many combinations of PWM's you can have. Move around PWM's until pushing forward on the joy moves them all forward, back moves back, turns are correct, and strafing is proper.
__________________
FTC Teams 5257, 6568 & FRC Team 3992
Eagles Robotics Xperience
2014 FTC WORLD CHAMPIONS
14 Trophies in 3 Years
Reply With Quote