Go to Post Someone once said, "I know what finished is, and I know what a robot is, but what is this finished robot you speak of?" - EricH [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2006, 19:01
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Error in dashboard spec

I believe I have found an error in the dashboard spec.
The file dashboard-specification.pdf, dated 1.5.2005 says (on page 4) that
the "extended" packet is:

Code:
...
    Byte06 USER BYTE 2
    Byte07 USER BYTE 3
    Byte08 CTRL_A
    Byte09 USER BYTE 5
    Byte10 CTRL_B
    Byte11 USER BYTE 5
    Byte12 CTRL_C
    Byte13 USER BYTE 6
    Byte14 PACKET NUMBER
    Byte15 USER BYTE 6
    ...
My experiments have shown that byte07 is not USER BYTE 3, but that byte09 is, and that bytes 4 & 5 are in byte11 and byte13, like this:

Code:
...
    Byte06 USER BYTE 2
    Byte07 ?????????
    Byte08 CTRL_A
    Byte09 USER BYTE 3
    Byte10 CTRL_B
    Byte11 USER BYTE 4
    Byte12 CTRL_C
    Byte13 USER BYTE 5
    Byte14 PACKET NUMBER
    Byte15 USER BYTE 6
    ...
__________________
Don Reid
  #2   Spotlight this post!  
Unread 05-02-2006, 23:07
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Error in dashboard spec

Can anyone else confirm this?
  #3   Spotlight this post!  
Unread 06-02-2006, 09:10
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Error in dashboard spec

How did you determine that the packet spec is wrong? If it's wrong I'd like to patch the software I've released, but I don't have access to a robot controller to verify. Can someone please confirm or deny the claim?
  #4   Spotlight this post!  
Unread 06-02-2006, 12:40
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Re: Error in dashboard spec

Quote:
Originally Posted by seanwitte
How did you determine that the packet spec is wrong? If it's wrong I'd like to patch the software I've released, but I don't have access to a robot controller to verify. Can someone please confirm or deny the claim?
First I wrote a small c program to decode the packets based on the spec, I printed each of the duplicate entries shown. Then I hacked a copy of the robot code to output unique and changing values to the User_Byte variables. Looking at the reaults showed what was
happening.

I'll attach my updated dump code, It requires that the serail port already be set to 19200 baud etc. I write this for gcc on Linux, results on other platforms may vary.
Attached Files
File Type: c read.c (1.8 KB, 30 views)
__________________
Don Reid
  #5   Spotlight this post!  
Unread 06-02-2006, 12:54
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Error in dashboard spec

Quote:
Originally Posted by Don Reid
First I wrote a small c program to decode the packets based on the spec, I printed each of the duplicate entries shown. Then I hacked a copy of the robot code to output unique and changing values to the User_Byte variables. Looking at the reaults showed what was
happening.

I'll attach my updated dump code, It requires that the serail port already be set to 19200 baud etc. I write this for gcc on Linux, results on other platforms may vary.
Did you validate the results with the IFI dashboard? Just curious whether theirs shows the correct values.
  #6   Spotlight this post!  
Unread 07-02-2006, 12:40
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Re: Error in dashboard spec

Quote:
Originally Posted by seanwitte
Did you validate the results with the IFI dashboard? Just curious whether theirs shows the correct values.
I posted the same basenote to their forum. No responce yet.
__________________
Don Reid
  #7   Spotlight this post!  
Unread 09-02-2006, 12:39
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Re: Error in dashboard spec

IFI has now posted http://www.ifirobotics.com/forum/vie....php?p=579#579

"Answer: You are correct. We have updated the dashboard-specification.pdf. Thanks for the feedback."
__________________
Don Reid
Closed Thread


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 Programs? EHaskins Programming 5 31-01-2006 14:01
Duplicate user byte 6 in Dashboard spec? Jared Russell Programming 3 23-01-2006 20:45
2004 Dashboard Protocal vs 2005 Dashboard Protocal Kyle T Programming 4 14-03-2005 22:19
Battery Voltages in Dashboard Ian W. Programming 10 07-03-2004 16:50
New dashboard packet spec Ameya Programming 2 08-01-2004 19:59


All times are GMT -5. The time now is 01:36.

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