Go to Post No amount of sleep beforehand will make up or prepare you for the lack of sleep you will receive during build season. - Dan Petrovic [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2014, 20:58
chigskonkwo chigskonkwo is offline
Registered User
FRC #0884 (Mechanical Mules)
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Malverne, New York
Posts: 34
chigskonkwo can only hope to improve
Which motors are PWM 1, 2, 3, 4?

When programming the code, it says that specific motors are for PWM 1, 2, 3, and 4. When we tested our electronics on a test board, we knew which motors were for PWM 1, 2, 3, and 4, but now we already have our motors mounted on the robot, and don't know which Jaguars to plug into PWM ports 1, 2, 3, and 4 on the digital sidecar. HELP!
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2014, 21:05
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
When programming the code, it says that specific motors are for PWM 1, 2, 3, and 4. When we tested our electronics on a test board, we knew which motors were for PWM 1, 2, 3, and 4, but now we already have our motors mounted on the robot, and don't know which Jaguars to plug into PWM ports 1, 2, 3, and 4 on the digital sidecar. HELP!
You have several options...

1) Look at your jaguars. What motor are they connected to? OK. You've identified the motor. Check your code. What PWM port should this be? Trace your PWM cable from the Jaguar to the sidecar and plug into the correct port.

2) Change your code so that turning on the specific PWM turns on the correct motor.

No need to panic.
__________________
FTC Teams 5257, 6568 & FRC Team 3992
Eagles Robotics Xperience
2014 FTC WORLD CHAMPIONS
14 Trophies in 3 Years
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2014, 21:13
chigskonkwo chigskonkwo is offline
Registered User
FRC #0884 (Mechanical Mules)
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Malverne, New York
Posts: 34
chigskonkwo can only hope to improve
Re: Which motors are PWM 1, 2, 3, 4?

We chose Mecanum drive on our code, we didn't code each specific motor.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2014, 21:15
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: Which motors are PWM 1, 2, 3, 4?

Look at your begin.VI code. You have the option to choose which port each motor should be in.
Reply With Quote
  #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
  #6   Spotlight this post!  
Unread 11-02-2014, 21:17
chigskonkwo chigskonkwo is offline
Registered User
FRC #0884 (Mechanical Mules)
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Malverne, New York
Posts: 34
chigskonkwo can only hope to improve
Re: Which motors are PWM 1, 2, 3, 4?

Does it say "Front Right" or "Back Left" or something? (I don't have the programming laptop with me right now).
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2014, 21:17
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
Does it say "Front Right" or "Back Left" or something? (I don't have the programming laptop with me right now).
Yes, the constructor for the mecanum drive class specifies the order of inputs and which motor they correspond to.
__________________
FTC Teams 5257, 6568 & FRC Team 3992
Eagles Robotics Xperience
2014 FTC WORLD CHAMPIONS
14 Trophies in 3 Years
Reply With Quote
  #8   Spotlight this post!  
Unread 11-02-2014, 21:21
chigskonkwo chigskonkwo is offline
Registered User
FRC #0884 (Mechanical Mules)
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Malverne, New York
Posts: 34
chigskonkwo can only hope to improve
Re: Which motors are PWM 1, 2, 3, 4?

Okay, thanks a ton! I'll look at it when I get to tomorrow.
Reply With Quote
  #9   Spotlight this post!  
Unread 11-02-2014, 21:22
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: Which motors are PWM 1, 2, 3, 4?

Quote:
Originally Posted by chigskonkwo View Post
Does it say "Front Right" or "Back Left" or something? (I don't have the programming laptop with me right now).
Yes. The RobotDrive4Motor.VI has 4 inputs on the left side of the subVI. Right click on each of them, and go to create ---> constant. This will present you with an enum (aka a drop down menu) for each of the 4 motors, giving you the option to choose PWM 1-10.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi