View Single Post
  #3   Spotlight this post!  
Unread 31-01-2014, 23:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Code suddenly not working

Things that sound like "shooting sequence" typically belong in the Periodic Tasks vi. If it either includes either explicit delays or waits for robot actions to occur based on sensor input, it's not likely to work as part of Teleop.

Teleop gets called each time a new data packet is sent from the Driver Station with joystick/gamepad/Cypress input values. It needs to do its job and end quickly. If it hasn't finished running before the next Driver Station communication occurs, it'll disrupt the vital communication tasks, and the robot will probably report a "loop running slow" error.
Reply With Quote