Go to Post When a vomit shooter runs out of balls, is it dry heaving? :p - Lil' Lavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2012, 13:20
Luiz12 Luiz12 is offline
Registered User
FRC #4210
 
Join Date: Jan 2012
Location: South Gate
Posts: 45
Luiz12 is an unknown quantity at this point
Can't add motors..

Hi I'm current part of a rookie team and I can't seem to add a motor to our control. I started from the original code and just added everything below. I'm using a victor but I cant seem to make the motor run.
  #2   Spotlight this post!  
Unread 07-02-2012, 13:41
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Can't add motors..

Your code snippets look good on their own. You mentioned that you added this to the default code. The default code already uses PWM 1 for the robot drive. Using it for your separate motor would cause a conflict. Have you tried it on a different PWM channel?

Another potential problem (to quote Alan Anderson) "Correctly plugging a PWM cable into a Victor is maddeningly difficult to do, and nearly impossible to tell when you've failed without trying to control it. It sometimes seems to me that consistently getting it right takes years of experience and practice."
  #3   Spotlight this post!  
Unread 07-02-2012, 13:59
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Can't add motors..

Have you reworked your DB 137 Cable? Have you gotten a robot to actually drive?
  #4   Spotlight this post!  
Unread 07-02-2012, 14:44
arizonafoxx's Avatar
arizonafoxx arizonafoxx is offline
Registered User
FRC #4395 (T-Rex)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Fort Mill, SC
Posts: 96
arizonafoxx is an unknown quantity at this point
Re: Can't add motors..

In your code it sort of looks like there is an extra space at the end of "Ball Motor" in the begin vi. This will cause a problem. Every variable has to be exactly the same in all 3 vi including spaces. This problem has got us a few times especially with our new programmers. We have spent several hours sometimes troubleshooting all the hardware when in reality when we changed the variables to a different name the problem went away.
  #5   Spotlight this post!  
Unread 07-02-2012, 14:51
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Can't add motors..

Quote:
Originally Posted by arizonafoxx View Post
In your code it sort of looks like there is an extra space at the end of "Ball Motor" in the begin vi. This will cause a problem. Every variable has to be exactly the same in all 3 vi including spaces. This problem has got us a few times especially with our new programmers. We have spent several hours sometimes troubleshooting all the hardware when in reality when we changed the variables to a different name the problem went away.
Good eye.. I would suspect that to be the problem too.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #6   Spotlight this post!  
Unread 07-02-2012, 15:51
MJ Miller's Avatar
MJ Miller MJ Miller is offline
Control System Mentor
FRC #4910 (Robohounds)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Marietta, GA
Posts: 19
MJ Miller is an unknown quantity at this point
Re: Can't add motors..

I echo what arizonafoxx stated, but add another possible scenario. At the beginning of the season, we flashed our laptop with the 2012 version of the software. However, the 3 updates made available after kickoff were NOT applied. These included updates for Labview, Utilities and the Driver Station. The students used this computer to flash the cRIO, build, and deploy the default code. The default code was edited slightly to include a 4 motor drive system and Arcade drive. Result? The robot ran with no problems!

However, when we tried to add a motor just as you claim, then nothing would work! Not even the drive motors. Weird stuff.

But, installing the 3 updates to the computer, re-imaging the cRIO, and re-compiling the code fixed the failure we encountered and all is well now.
Closed Thread


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 00:43.

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