Go to Post I wish I had two extra hands, so I could give those gearboxes four thumbs up! - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 29-02-2012, 09:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Can't figuring out what's wrong. Please help.

Seeing your code would help us help you figure out what's going on.


I'll guess blindly that you're using two buttons, one to raise the arm and one to lower it. You've got a pair of if/then statements (or case blocks in LabVIEW), one for each button, to decide whether to run the motor or stop it. The problem is that if you press the first button to turn the motor on, the second button's else clause (or false case) turns the motor off again immediately.

Does that hit the mark, or am I totally wrong?
  #2   Spotlight this post!  
Unread 29-02-2012, 09:36
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Re: Can't figuring out what's wrong. Please help.

We had that same problem, and based on your description, it sounds like you are using a case structure. Rather than using a case structure, I would use this as an example. I originally used a case structure and had a similar problem. I hope this helps, but if it doesn't or you aren't using NI Labview, sorry.

You can also use the throttle on one of the joysticks to control the motor, but it can be a little touchy, so I would recommend using the above link.

Last edited by bf2416 : 29-02-2012 at 09:46.
  #3   Spotlight this post!  
Unread 29-02-2012, 09:51
Taylor's Avatar
Taylor Taylor is offline
Professor of Thinkology, ThD
AKA: @taylorstem
FRC #3487 (Red Pride Robotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indianapolis, IN, USA 46227
Posts: 4,599
Taylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond reputeTaylor has a reputation beyond repute
Re: Can't figuring out what's wrong. Please help.

Does the arm start (relatively) vertical, lower to horizontal, then lift back to vertical? Perhaps the motor isn't strong enough to lift the arm back up.
__________________
Hi!
  #4   Spotlight this post!  
Unread 29-02-2012, 19:49
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Can't figuring out what's wrong. Please help.

Quote:
Originally Posted by Taylor View Post
Does the arm start (relatively) vertical, lower to horizontal, then lift back to vertical? Perhaps the motor isn't strong enough to lift the arm back up.
To elaborate,

Have you counterbalanced your arm?

Don't forget that when pushing something down, gravity works with the motor, but against you when pulling it back up. The same applies to any mechanism that works with gravity one way, and fights it the other way. Sort of like how going down stairs is easier than going up

If you haven't counterbalanced your arm, then that would produce exactly the type of behavior you describe.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #5   Spotlight this post!  
Unread 01-03-2012, 02:13
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
Re: Can't figuring out what's wrong. Please help.

If you are using Java, or a language with similar syntax, you'll want a format like this:

Code:
if(condition1)
{
    //perform action 1
}

else if(condition2)
{
    //perform action 2
}
and so on.

What this will do is stop checking if a button was pressed after one of the conditions is true. I.e., when condition 1 is true, the program will not check for condition 2 and not execute its else statement (if you have one). If what Alan said is the issue, this should be a relatively simple fix.


Now for everyone to tell me that I'm completely wrong and that this won't work.
__________________
Joe
"The ones who will one day rule the world rule the basketball court today."

http://www.fatherjudgerobotics.webs.com

Volunteer 2012 MAR Region Championship - Field Reset
Volunteer 2013 MAR Region Championship - Field Reset
  #6   Spotlight this post!  
Unread 01-03-2012, 02:22
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,791
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Can't figuring out what's wrong. Please help.

You say "van door motors" - which motors are you talking about specifically? Most teams would be using either the AndyMark Gear Motor (PN am-091) or dual Window Motors (PN 262100-3040 and 262100-3030). To use a van door motor, you would either have access to previous year's KoP's (several years ago they included a Van Door motor, if I remember correctly), or parts from the ARA donation.

If you're talking about the window motors in the KoP, I recall issues being posted in past years with them and specific speed controllers - when pushing against a load, the frequency of the speed controller would cause issues with running it in that direction.

Try switching the controller out for a Spike relay (if appropriate), or removing the locking pin from the window motor (an allowed modification).
  #7   Spotlight this post!  
Unread 01-03-2012, 12:08
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,813
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Can't figuring out what's wrong. Please help.

Quote:
Originally Posted by Jon Stratis View Post
To use a van door motor, you would either have access to previous year's KoP's (several years ago they included a Van Door motor, if I remember correctly), or parts from the ARA donation.
FIRST Choice still had the '08 KOP Van Door motors in Week 6, and they are legal to use if you got them from there. I was thinking those would be perfect for dropping the bridge if you could get your hands on them.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

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 04:46.

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