Go to Post sometimes you have to put up with the rain to see the rainbow - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 16-04-2010, 18:06
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
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);
How would one parse the version bytes? Are they ASCII?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib

Last edited by byteit101 : 17-04-2010 at 16:39.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 03:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi