View Single Post
  #15   Spotlight this post!  
Unread 28-03-2012, 18:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Unable to run cRIO with cRIO2 program

I'm jumping into this one late, but my advice is to decide which output is correct and only update with the correct value. Updating with correct and incorrect values almost randomly will not improve by using shift registers vs tunnels. Changing the rates only statistically changes the amount of time that a given motor value is correct. During Auto, do you want the periodic values at all? If not, use a global Boolean to skip all periodic updates that conflict. In tele, flip the Boolean to use the periodic values. If that isn't quite the right logic for which to use, determine what that logic is first, then look for a clean way to implement it to avoid the inconsistent writes all together.

Greg McKaskle
Reply With Quote