Quote:
Originally Posted by Hazmatt
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.