|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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? Last edited by ratdude747 : 21-03-2011 at 10:15. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|