Go to Post The future is being developed by FIRSTers! - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 18-03-2013, 01:07
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Autonomous failure

So after our first competition I badly want to get our autonomous mode going due to never really getting a good grasp on autonomous running correctly.

We have our shooter (on a victor) I want to power up, wait 2-3 seconds then fire a frisbee via pneumatic cylinder which takes about 2 seconds to fully force the frisbee to the wheels (its slow for some reason but I'll live with it after seeing teams shoot 3 in 5 seconds).

I am using a flat sequence. I have attached the part of the VI (I think). When we startup autonomous mode the robot the shooter motor spins up, then cycles the valve a split second not fully extending the cylinder to eject the frisbee. Can someone help me figure out whyats going on?
Attached Thumbnails
Click image for larger version

Name:	auto.png
Views:	82
Size:	34.5 KB
ID:	14372  
Reply With Quote
  #2   Spotlight this post!  
Unread 18-03-2013, 01:41
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,112
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: Autonomous failure

What you posted looks okay.

Wild guess: You're also controlling the shooter solenoid in Periodic Tasks, which is also running during Autonomous, so it's constantly being turned off every 20 milliseconds or so. Is that what's going on?
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2013, 03:21
kgzak's Avatar
kgzak kgzak is offline
Registered User
AKA: Kris
FRC #4392 (Decievers) FRC #2075 (Enigma)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Grand Rapids, Michigan
Posts: 418
kgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to behold
Re: Autonomous failure

Are you using Double or Single Valves? Are they properly initialized in the Begin.vi? I had problems where I had double solenoids and kept saying true or false which causes them to behave in a manner somewhat like you described. Maybe you are the other way? Also check that no other VI is controlling you solenoids at the same time as mentioned above.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-03-2013, 09:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous failure

In addition to the problem of setting the solenoid simultaneously in other places...
Based on your description, you will also need a frame at the front just containing a delay to allow the shooter time to get up to speed.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 18-03-2013, 11:01
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Autonomous failure

Alan, I am calling the shooter motor and the shooter solenoid in periodic tasks. The shooter seems to fire up just fine, although I haven't checked to see if it is actually at full power. Should I move both of these to teleop then or just the solenoid?

kgzak, The solenoid works fine in teleop mode other than just being slower than I'd like.

Mark, I run the shooter solenoid forced out for 2 seconds just in case during testing in the pits it got turned off before fully retracting which also acts as spin up time for the shooter. As the code sits forward and reverse might be backwards from what they really are due to my trying every iteration to get the dang thing to work.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-03-2013, 18:40
NeatNit's Avatar
NeatNit NeatNit is offline
Alumni Programmer
FRC #1577 (Steampunk)
Team Role: Teacher
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Israel
Posts: 60
NeatNit is an unknown quantity at this point
Re: Autonomous failure

Basically, you must never control the same thing in two places at the same time. There are many ways to solve this - you can make that part of Periodic not run during Autonomous, or you could send commands to Global in Autonomous (and TeleOp) and only have Periodic output them to the solenoid. Or, as you said, you could move the part in Periodic to Teleop, but I wouldn't recommend this as we've had a lot of problems with too much code in Teleop (even if that code is very simple, there's just too much of it and it has to run faster).
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 14:10.

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