View Single Post
  #8   Spotlight this post!  
Unread 01-03-2006, 12:49
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Dashboard Port Decoder

Quote:
Originally Posted by whytheheckme
What is the deal?; In the new dashboard specifications, it shows three different pages for serial in from the RC. There are control bits. How does this work ...
There are actually 3 different types of data frames that come from the RC, and you're guaranteed to get all 3 of them before repeating (i.e. no 2 frames of the same type will come in back-to-back). From looking at old source code provided by teams, it looked as if the old systems only had one RC data frame. The control bits will tell you which data frame it is (check out the data frame control bits in the documentation) and as long as the control bits change from frame to frame you know you're dealing with RC frames. If the frame control bits do not change, you know you're dealing with OI frames (selectable based on the jumper on the OI). So what you will need to do is have your code read the data frames, look at the control bits, and if they're the right control bits then pick off the byte(s) you want to be viewing.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418