Log in

View Full Version : Does anyone know what the org.usfirst.frc.teamXXXX.robot.triggers package is used for


afiolmahon
04-01-2015, 22:34
I recently saw that an empty package called org.usfirst.frc.team1218.robot.triggers was added to the command based robot project template and was unsure what it was used for. I couldn't come across any information that explained its use and I was curious why it exists.
Thanks for the help.

Team3266Spencer
04-01-2015, 23:49
Thank you i was wondering the same thing.

Arhowk
05-01-2015, 06:18
Additionally commands can be triggered by arbitrary conditions of your choosing by using the Trigger class instead of Button. Triggers (and Buttons) are usually polled every 20ms or whenever the scheduler is called.

source http://wpilib.screenstepslive.com/s/3120/m/7952/l/97457-running-commands-on-joystick-input

so basically they are any event that isn't the joystick