View Single Post
  #3   Spotlight this post!  
Unread 04-05-2016, 09:40 AM
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Programming Buttons

Are you using the command based framework? If so, you can easily make commands for all of these tasks. Just use the setTimeout method in initialize() to set it to run for the amount of time you want, and return isTimedOut() in isFinished.

Then, get JoystickButton objects out of your Joysticks and attach commands to them.
Reply With Quote