|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Dashboard Packet (Robot to Dashboard)
Does anyone know what the bits in the status and error bytes represent?
I have a document that claims what some of the status bits are, but the LV dashboard contradicts this. Also, assuming buffer is a byte array of the packet, would this be the correct interpretation of the packet: (C#) Code:
PacketNumber = buffer[0]+(buffer[1] >> 8);
DigitalIn = new DIOBitField(buffer[2]);
DigitalOut = new DIOBitField(buffer[3]);
Battery = float.Parse(buffer[4].ToString("x")+"." + buffer[5].ToString("x"));//to hex
Status = new StatusBitField(buffer[6]);
Error = new ErrorBitField(buffer[7]);
Team = (int)buffer[8] + (int)(buffer[9] >> 8);
Last edited by byteit101 : 17-04-2010 at 16:39. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dashboard Packet White Paper Out | slavik262 | Programming | 1 | 04-02-2010 14:49 |
| Dashboard Packet White Paper | slavik262 | FRC Control System | 2 | 04-02-2010 14:48 |
| Dashboard - User Bytes | DanDon | Programming | 3 | 20-04-2006 05:10 |
| Dashboard Error Bytes | Josh Hambright | National Instruments LabVIEW and Data Acquisition | 0 | 16-04-2006 13:32 |
| New dashboard packet spec | Ameya | Programming | 2 | 08-01-2004 19:59 |