View Single Post
  #1   Spotlight this post!  
Unread 24-01-2012, 19:39
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Code in Periodic Tasks working with teleop

Hello -

I've got this code which sets the 'shooter' motor to full forward speed for 1 second when button 2 is pressed on joystick 1. Now, I had this within teleop, but it caused data loss due to the timing. So, as advised, I put it within the periodic tasks.



Now my issue is how do I tell teleop to use code within periodic tasks? When the code was within teleop, it functioned as expected (less the data loss), but when it's inside periodic tasks, it doesn't work at all.

Any help? Thanks.
Reply With Quote