Go to Post We will be stressed, we will be angry. But we need to hold ourselves to a higher standard, we need to be role models and inspirations to students. - Andrew Schreiber [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 21-03-2004, 20:10
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
Help! My robot has a mind of it's own!

Alright, the programmers on my team have run into a serious problem... It seems like we can't quite control our autonomous mode. At the beginning of autonomous mode, our 2x ball grabbing mechanism (a big arm powered by pneumatics) bashes itself into the ground. All the code in autonomous mode has been completly removed (except for the basic neccesary stuff, getdata, putdata, etc) and yet the arm continues to hit the ground. I won't have the code until Thursday at the latest, but if anyone has any idea what's going on, it would be extraordinarily helpful. Thanks!
  #2   Spotlight this post!  
Unread 21-03-2004, 20:12
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Help! My robot has a mind of it's own!

did you add the pwm initilazations to the begining of the code?

sorry for spelling mistakes
  #3   Spotlight this post!  
Unread 21-03-2004, 20:14
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
Re: Help! My robot has a mind of it's own!

Well, lacking the code it is hard to make a guess at the issue ... but, by chance, did you check out this page, describing how the RC can cause your bot, at the start of autonomous mode, to be stuck using stale values (last remembered values from OI)?
  #4   Spotlight this post!  
Unread 21-03-2004, 20:16
mentorn mentorn is offline
Man of Mystery
AKA: Jared Osborn
#0449 (Blair Robot Project)
Team Role: Driver
 
Join Date: Mar 2004
Location: Olney, Maryland
Posts: 5
mentorn has a little shameless behaviour in the past
Send a message via AIM to mentorn
Re: Help! My robot has a mind of it's own!

Are you using a single solenoid? If so, it's probably not the code at all. You must know that single solenoids have what's called a "default position," which is the position the solenoid reverts to when it's not given power. What happens is that when your robot switches on and the compressor starts pumping air, it will pump air through the solenoid in default position. Quick fix: swap the two pneumatic tubing outputs at the solenoid.
Hope this helps,
__________________
--Jared Osborn

"This is your life... are you who you want to be?"
  #5   Spotlight this post!  
Unread 21-03-2004, 20:17
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
Re: Help! My robot has a mind of it's own!

yea we've tried putting that stuff everywhere. Our arm runs on relays, and we want it to be this:
relay5_fwd = 1;
relay5_rev = 0;
relay6_fwd = 1;
relay6_rev = 0;
but whenever we printf it, it shows 1, 1, 0, 0 respectively, which makes absolutly no sense whatsoever seeing as how relay5_fwd AND relay5_rev shouldn't be 1 at the same time...
  #6   Spotlight this post!  
Unread 21-03-2004, 20:19
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
Re: Help! My robot has a mind of it's own!

In response to #3:
That thought did cross our mind, see above

In response to #4:
I'm not even sure if it's running on a solenoid, or for that matter, what a solenoid is, I'm not an electrician (but I am trying to learn for next year)
  #7   Spotlight this post!  
Unread 21-03-2004, 20:20
10intheCrunch's Avatar
10intheCrunch 10intheCrunch is offline
Who's John V-Neun?
AKA: Alex Baxter
None #0254 (Cheesy Poofs)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: San Jose, CA
Posts: 129
10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough
Send a message via AIM to 10intheCrunch
Re: Help! My robot has a mind of it's own!

Hmmmmm...we've had some problems with pneumatics acting strangely during autonomous mode occasoinally, though never consistantly. A few thoughts:

First, set the pneumatics to what they should be in the program at the top of every loop. Sometimes the default can get messed up and your pneumatics will adjust...

Search your program (even parts that you really really believe aren't called) for any line of code that might set the arm doing what it does. Put printf's near them and test, see if any of them are being called. Because theres usually one more pass through the main user function when auto is called (when all inputs are set to neutral), something may be set improperly.

If it's still acting out of control, I'm out of ideas for the moment...probably electrical =\.
__________________
~Alex Baxter
Programming, Arms operation, Team 254
  #8   Spotlight this post!  
Unread 21-03-2004, 20:21
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,519
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: Help! My robot has a mind of it's own!

Quote:
Originally Posted by K0r34nB0y
In response to #4:
I'm not even sure if it's running on a solenoid, or for that matter, what a solenoid is, I'm not an electrician (but I am trying to learn for next year)
Does the arm use a pneumatic cyliner to "bash itself into the ground"?

EDIT: I reread post #1 and now that I see that it does indeed operate on pneumatics, there will be a solenoid. I'm willing to bet the problem is what post #4 has described.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004

Last edited by sanddrag : 21-03-2004 at 20:23.
  #9   Spotlight this post!  
Unread 21-03-2004, 20:31
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
Re: Help! My robot has a mind of it's own!

I just talked to one of our chief mechy's and I guess all of our cylinders are on double acting solenoids.
Another thing of relative interest:
http://www.innovationfirst.com/FIRSTRobotics/
Issue two I already thought of, but havn't yet had the chance to test it. I just got back from my regional last night, so I won't be able to put any of this hardware testing into practice until nationals.
__________________
"Joe! Stop answering all the questions! You're too smart."
--later--
"Okay, from now on you have to speak in tertiary."
  #10   Spotlight this post!  
Unread 21-03-2004, 20:47
dez250 dez250 is offline
54... What a good number!
no team
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Upstate NY / Manchester, NH
Posts: 1,721
dez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond repute
Send a message via AIM to dez250
Re: Help! My robot has a mind of it's own!

Quote:
Originally Posted by K0r34nB0y
I just talked to one of our chief mechy's and I guess all of our cylinders are on double acting solenoids.
Another thing of relative interest:
http://www.innovationfirst.com/FIRSTRobotics/
Issue two I already thought of, but havn't yet had the chance to test it. I just got back from my regional last night, so I won't be able to put any of this hardware testing into practice until nationals.
Guys ill give a lil heads up on this issue. I dont know the programming side but i will help you know the stance of the mechanical and electrical side. Our Arm has a "claw" on the end of it which has 2 positions. These are controlled by 2 independent double acting solenoids each on its own pistion. It seems that only one of them are extending at the start of auton and just stays at that position for auton mode. We have no problems with the arm in manual control. As for the issue with the controllers firmware issue, Ricky from IFI said that, that would not be the issue because it occurs during each time our bot went into auton mode.
__________________
#5

-Michael Dessingue
  #11   Spotlight this post!  
Unread 21-03-2004, 20:52
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
Re: Help! My robot has a mind of it's own!

Quote:
Originally Posted by K0r34nB0y
yea we've tried putting that stuff everywhere. Our arm runs on relays, and we want it to be this:
relay5_fwd = 1;
relay5_rev = 0;
relay6_fwd = 1;
relay6_rev = 0;
but whenever we printf it, it shows 1, 1, 0, 0 respectively, which makes absolutly no sense whatsoever seeing as how relay5_fwd AND relay5_rev shouldn't be 1 at the same time...
--oops
It's actually supposed to be the other way around.
__________________
"Joe! Stop answering all the questions! You're too smart."
--later--
"Okay, from now on you have to speak in tertiary."
  #12   Spotlight this post!  
Unread 21-03-2004, 20:58
coreyjon's Avatar
coreyjon coreyjon is offline
Flight Engineer
FRC #0250 (Team 250 Dynamos)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Upstate, Ny
Posts: 184
coreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nice
Send a message via AIM to coreyjon
Talking Re: Help! My robot has a mind of it's own!

ok, as the senior Mech on our team, I take great pride in....*whacking dez in the head a few times*. yes, we are using double acting selonoids. it occured to me that we may not be initializing the selonoids to the closed position at the beginning of the auton mode, im not a programmer on the team, although I am in c/C++ at school, so I do know what im talking about...to some extent. Our programmers have been working really hard to resolve this problem, and many helpful people from teams, and ifi at UTC tryed to give us a hand, and I thank everyone who helped for doing so.
__________________
"Jack of all trades, master of none, though offtimes better than master of one".
  #13   Spotlight this post!  
Unread 22-03-2004, 12:36
K0r34nB0y's Avatar
K0r34nB0y K0r34nB0y is offline
Registered User
AKA: Nate
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Capital Region, NY, USA
Posts: 27
K0r34nB0y is an unknown quantity at this point
Re: Help! My robot has a mind of it's own!

Quote:
Originally Posted by coreyjon
to some extent
Just thought I need to emphasize that corey...
__________________
"Joe! Stop answering all the questions! You're too smart."
--later--
"Okay, from now on you have to speak in tertiary."
  #14   Spotlight this post!  
Unread 22-03-2004, 14:18
NotQuiteFree's Avatar
NotQuiteFree NotQuiteFree is offline
Do the WAAAAVE!!
#0957 (Watson)
Team Role: Programmer
 
Join Date: Dec 2003
Location: Albany, Oregon
Posts: 22
NotQuiteFree will become famous soon enough
Send a message via MSN to NotQuiteFree
Re: Help! My robot has a mind of it's own!

South Albany was having a problem like this at the PNW regional this year, and I had to help solve it. Make absolutely sure you are downloading the correct file to the controller. They had 2 different projects, and just happened to download the wrong one. Also, if you are changing anything in the user_routines.c file, take that out, too, just to see if that is the problem. Only remove it, however, if you have added something extra that did not come pre-programmed. Good luck.
__________________
Yo.
  #15   Spotlight this post!  
Unread 22-03-2004, 14:22
nancienancie_47 nancienancie_47 is offline
Registered User
no team
 
Join Date: Feb 2004
Location: Pontiac, MI
Posts: 13
nancienancie_47 has a little shameless behaviour in the past
Re: Help! My robot has a mind of it's own!

WHAT, your robot has a mind of it's own!!!yeap, you never know whats going on in that mind of that robots. it goes crazy sometimes.~*~nAncEe~*~
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
A robot Audio System punarhero Technical Discussion 9 02-02-2004 19:19
Controlling a FIRST robot with a Lego RCX Controller? archiver 2001 5 24-06-2002 04:19
Are you willing to let others take picture of your robot? Ken Leung Robot Showcase 21 10-04-2002 22:50
Kamikaze Robot Strategy... Joe Johnson Rules/Strategy 30 07-04-2002 21:42
Calling all Lawyers... ...Define "all parts" Joe Johnson General Forum 10 13-03-2002 15:12


All times are GMT -5. The time now is 06:33.

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