Thread: LimitSwitches
View Single Post
  #1   Spotlight this post!  
Unread 02-23-2016, 03:52 PM
LFRobotics's Avatar
LFRobotics LFRobotics is offline
Registered User
FRC #4623
 
Join Date: Jan 2014
Location: Little Falls, MN
Posts: 95
LFRobotics is on a distinguished road
LimitSwitches

Hello I am trying to make a motor run forwards only when im holding a button and stop if I release the button OR if the thing the motor is moving hits a limitswitch

I have it going up and down ONLY when the button is held but the moment I try to add limitswitch code it stops working

lift is the subsystem - liftUp, liftDown, and liftStop are the commands and in the OI the buttons are in a group all with armLiftDown or Up or Stop

Also how do I make the chooser code in Robot.java work. I don't see the autonomous command I set in the Driver Station

Here is the code on GitHub: https://github.com/FranklinMarquette/Robot2016

Thanks so much for the help!
Reply With Quote