View Single Post
  #4   Spotlight this post!  
Unread 07-02-2013, 18:43
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Programming Pneumatics

Quote:
Originally Posted by Mr.Roboto3335 View Post
Would this be correct? (Please don't steal)

}if(miscStick.getRawButton(7)){
piston2extract.set(true);
piston2retract.set(false);
}else if(miscStick.getRawButton(8)){
piston2extract.set(false);
move the if off of the brackets.

so its

}
if(){
}

you have it set up

}if(){
}

which gives the false illusion of an else statement. anyway, that wont work for piston 1 because it imminently gets de-fired if piston 2 isnt being fired / retracted.

also, you have no compressor regulator
Reply With Quote