View Single Post
  #1   Spotlight this post!  
Unread 14-10-2010, 17:14
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Whats wrong with this code?

Can someone point out any logic problem or another error in this code. It would be greatly appreciated. Our kicker has 3 switches, (1) called proximity switch, (2) called safe switch, (3) called armed switch and a pneumatic cylinder and a compressor.

This is the logic to this the kicker.

Proximity Switch: connected to a motor.
Job: bring the kicker back up and then moving out of the way so it is safe to kick

Safe Switch: means " Almost all the way back"
Job: When this comes on, slow the motor connected to proximity switch

Armed Switch: "Ready to fire"
Job: When this comes on, wait for button. BUT check if proximity is out of the way.

The proximity switch is connected to a motor. When the robot is turned on this switch is set to retract back, bringing the kicker up in place, until the safe switch is on. When the safe switch comes on slow the motor down And keep going until Armed switch is on. When Armed is on the proximity switch is set to get out of the way, so it is safe to kick.

I decided that i should "build" and "deploy" the whole code on the robot and see what happens. ..... And so i did and ... nothing happened. Something happened somehow which ruined the whole thing. The motor connected to proximity switch wasnt moving, not retracting, the pneumatic cylinder wasnt extending, retracting, NOTHING WAS happening besides the robot moving. I looked at the code several times, but i need help.

Help needed please Thank you
Attached Files
File Type: doc pictures_of_code_1514.doc (269.0 KB, 66 views)

Last edited by whcirobotics : 14-10-2010 at 17:25.
Reply With Quote