Go to Post It never stops. Championships will be in your head forever!!! MWHAHAHAHA!!! - vadyr [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 23-03-2013, 21:12
nickcvet89 nickcvet89 is offline
Registered User
FRC #1228 (RoboTribe)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Rahway,NJ
Posts: 99
nickcvet89 will become famous soon enough
Send a message via AIM to nickcvet89
Teleop Limit Switch Firing Sequence

Hey everyone, currently our robot has an arm that when a button is pressed, a sequence of shooting in cocking for next shot occurs. This has worked....... at times, during some of our matches at Mt. Olive District Event, we noticed that if the arm got jammed on a frisbee, it was unable complete this sequence and our robot would not be able to shoot. We would like to know if anyone has a suggestion on improving this code so that it would exit the sequence structure if this would happen. I posted what we currently have. Thanks
__________________

Last edited by nickcvet89 : 23-03-2013 at 21:17.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-03-2013, 22:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Teleop Limit Switch Firing Sequence

The way it is written, the first loop will run at full speed until the limit switch is triggered.

You may want to combine the exit condition with a timeout. OR the limit switch and either a loop counter or a time since the loop began. You may also want to throttle the loop by putting a delay in it.

The attached image shows the sort of thing you might do.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Clipboard 1.png
Views:	34
Size:	166.4 KB
ID:	14419  
Reply With Quote
  #3   Spotlight this post!  
Unread 23-03-2013, 22:19
nickcvet89 nickcvet89 is offline
Registered User
FRC #1228 (RoboTribe)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Rahway,NJ
Posts: 99
nickcvet89 will become famous soon enough
Send a message via AIM to nickcvet89
Re: Teleop Limit Switch Firing Sequence

Ahh thanks Greg, why should this be done in the first loop and not in the second or should I do this also in the second loop?
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 23-03-2013, 22:38
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Teleop Limit Switch Firing Sequence

If I were you, I'd do something similar in the second loop as well. I was just giving an example.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 23-03-2013, 22:41
nickcvet89 nickcvet89 is offline
Registered User
FRC #1228 (RoboTribe)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Rahway,NJ
Posts: 99
nickcvet89 will become famous soon enough
Send a message via AIM to nickcvet89
Re: Teleop Limit Switch Firing Sequence

Ohh ok, thanks, will try this in the AM!
__________________
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 12:12.

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