View Single Post
  #42   Spotlight this post!  
Unread 12-03-2009, 23:22
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,113
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: Intresting Autonomous

Quote:
Originally Posted by Hazmatt View Post
Where exactly in the labview code should we read the analog inputs? Should we read them in the basic robot main vi under the "Other" section? Or is there somewhere in the autonomous independent code that we should put it? Thanks!
You can read them in the Basic Robot Main outside the big case block, and store their values in a control in Basic Robot Global. Read the Global in Autonomous Independent to decide what to do with it.

You will need to delay storing by one loop time, because the Main gets called one extra time after Autonomous is enabled, with all the analog inputs at zero. I'd use a feedback node to pass the value to the next iteration of the loop. I think the other alternative, a shift register, clutters up the block diagram more.
Reply With Quote