View Single Post
  #1   Spotlight this post!  
Unread 21-08-2005, 17:48
sciguy125 sciguy125 is offline
Electrical Engineer
AKA: Phil Baltar
FRC #1351
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Sunnyvale, CA
Posts: 519
sciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond reputesciguy125 has a reputation beyond repute
Send a message via AIM to sciguy125 Send a message via MSN to sciguy125 Send a message via Yahoo to sciguy125
dashboard protocol

I'm working on a dashboard program and I need some more info about the protocol (the documentation isn't very detailed and I don't have access to the controller right now).

Quote:
The data sent out the Dashboard port is a stream of bytes. There are 26 bytes in a packet. The packets are transmitted approximately 40 times per second.
I got the part about 26 bytes in a packet. However, it takes 3 packets to get all the data. So, how many packets are sent each loop (main program loop)? Is it just one packet at a time, or all 3? The reason I ask is that I want to encode some extra data into the user bytes, but I need more than the 6 byes available. My plan is to send some of the data the first time around, then the rest of it in another packet (or set of packets).

Quote:
The firmware in the Robot Controller (2004 or later) interlaces data packets.
Is this the to answer my above question (sending one packet at a time) or does it mean that the packets don't come in order?

Lastly, the documentation keeps refering to specific bits within certain bytes. But is bit 0 the LSB or the MSB?

Edit: One more thing: there's a byte called USER CMD, but I couldn't figure out what it is. Is it an extra "user byte" that I can play with, or does it actually do something important?
__________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------

Last edited by sciguy125 : 21-08-2005 at 18:04.