View Single Post
  #1   Spotlight this post!  
Unread 21-03-2011, 09:54
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
old robot kicker question

I am rewriting the code for an old 2010 robot in 2011 style code.

the kicker is cocked by a pnuematic. when the kicker is kicked, the 3 double solenoids flip directions and springs kick the kicker.

I have figured out how to set it so it so it kicks when the kick button is held. I also have it so if it is kicked with button x, it kicks low, button y kicks medium, and button z kicks high using how many solenoids are activated (to control flow)

question #1

I am trying to make the solenoid go forward for 500ms and then retract (reverse) when a button is tapped (not held). i was told by the team's lead programmer to use a flat sequence structure.

I thought that i read that flat sequences were not allowed in teleop.vi. Also, i am not sure if a flat sequence is the right way to go.

any thoughts on what approach I should use?

Question #2

I am considering using one button to kick and 3 others to set kick power. as it is now, I could rewrite it so holding such power button while kicking would set power (no button held defaults to full power). not what i want. I would like to make it so hitting (not holding) the proper power button sets the power until another power button is hit. I am not sure how to do that.

I am a bit of a noob on this...

any advice?
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.

Last edited by ratdude747 : 21-03-2011 at 10:15.
Reply With Quote