Go to Post darn design trade-offs! the game design committee does this to us every year! - KenWittlief [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 16-01-2014, 23:13
BOSS BOSS is offline
Registered User
FRC #2883
 
Join Date: Jan 2010
Location: MN
Posts: 40
BOSS is on a distinguished road
Limit Switch help

So we programmed the limit switch and wired it correctly. It works, but we were wondering if you can override the limit switch after it's been pressed? For an example, motor spins and limit switch is pressed then motor stops, we press the shoot button again and the motor moves past the limit switch and makes another complete rotation until resting on the limit switch again.
Thanks team 2883
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2014, 00:00
Aaron.Graeve Aaron.Graeve is offline
Registered User
FRC #1477 (Texas Torque)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: College Station, Texas
Posts: 103
Aaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to all
Re: Limit Switch help

I don't see any physics-breaking issues with this.
The "overriding" of the limit switch would just be a coding exercise of temporarily ignoring the limit switch value. Whether the limit switch would be able to deal with the actuator moving past it without breaking the switch is another question. If you are dead set on doing this, I would highly encourage you to make sure the actuator can clear the switch without damaging the switch and to make sure the switch would still work correctly after doing so.
I do think there is probably a better method of controlling your actuator that this, though. Moving anything past a limit switch is just asking for trouble.
__________________

2016:
Alamo, Bayou, and Lone Star Regional FTAA
2015:
Dallas, Alamo, Bayou, and Lone Star Regional FTAA
2014:
Alamo, Dallas, and Lone Star Regional FTAA
Alamo Regional Robot Inspector
2013:
Einstein Champion and 2013 World Champion (Thanks 1241 & 610), Galileo Division Champion, Razorback Regional Winner, Alamo Regional Semifinalist, Bayou Regional Semifinalist, Lone Star Regional Quarterfinialist
2012:
Curie Division Semifinalist, Lone Star Regional Finalist, Bayou Regional Winner, Alamo Regional Winner
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2014, 03:29
wre136's Avatar
wre136 wre136 is offline
Registered User
AKA: Will Edds
FRC #2461 (The METAL-SKINS)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Oklahoma City
Posts: 30
wre136 is an unknown quantity at this point
Re: Limit Switch help

In your specific request, I would suggest that you look into implementing a State-Machine. You would create an enum that would have all the states your shooter would be in. For grins, the states I would use would be: Begin, Ready (Unloaded), Firing and Ready (Loaded). You would then feed the enum into a case structure so the robot will do something different in the states and the states could move the code to the next state.

To see this concept in action, here is a link to video on how to create a simple state machine for lifting a ball on FRCMastery: http://www.frcmastery.com/labview-fo...tate-machines/

The idea would be you would set your Ready-Loaded state to perhaps ignore the status of the limit switch so you can press the fire button and it will go.

Hope this points you in the right direction!
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2014, 07:33
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Limit Switch help

Boss,
If you are using a limit switch on a Jaguar input, then the answer is no. (Although if you are using CAN, you may be able to fudge something to ignore the limit.) If you are using an external limit switch sensed by the DIO then you can choose to override in software. If you are using CAN please let us know so that someone more familiar with the CAN implementation can answer.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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 09:48.

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