Go to Post Curse those filthy wrench-swinging rivet-popping screw-driving hammer-smashing mechanical barbarians. Hand over the robot to the programmers! - cjl2625 [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 06-03-2004, 20:38
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Weird Output from Dashboard Port

Something else: How do we know OI packets from RC packets? Or the beggining from 2 high user bytes? (Frame 2)
And I belive that you only get frame 3 20 times a second; the info is unlikely to change that quickly (Except pwm 15 & 16, but those are covered by frame 2).
  #2   Spotlight this post!  
Unread 06-03-2004, 20:50
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Weird Output from Dashboard Port

Quote:
Originally Posted by Astronouth7303
Something else: How do we know OI packets from RC packets? Or the beggining from 2 high user bytes? (Frame 2)
And I belive that you only get frame 3 20 times a second; the info is unlikely to change that quickly (Except pwm 15 & 16, but those are covered by frame 2).
Did you read the documentation?

Page 2, under notes...

"1. The IFI Dashboard Viewer now interprets the incoming data and changes the display window depending on the OI/RC jumper setting (located on the OI)."

Says right there how you know what packet (or packets) you're receiving, I'm sure you can find something in the packet stream to do it in software, but why bother when you can see it with your own eyes right on the OI?

You can tell the start of each frame by the two "flag" bytes. The first two bytes of each packet is 0xff,0xff while no where else in a packet can two consecutive bytes reach 0xff. That makes it very simple to find the beginning of a packet and keep yourself synchronized.

Infomation in Frame 3 is very important, actually. Two PWMs, the User Byte, the Battery Voltages (main and backup), and all the error codes (mostly in the Aux_Byte). Those are all pretty important, even if some is redundant. Plus, if I did infact create a bug that didn't display Frame 3 as much as the others, there'd be a problem, because what if next year Frame 3 was important? Just because something works now, doesn't mean you should leave it, make it work right. Also, if you get about 40 packets a second from the OI, it'd be more around 13 times a second to receive Frame 3, but that's a minor technical detail. Although, you receive Frame 3 just as many times as you receive the other frames in the stream, which I'm not sure you understood from the documentation that you obviously read.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
New dashboard packet spec Ameya Programming 2 08-01-2004 19:59
Dashreader.dll: A Visual Basic .NET user control to read the dashboard port Ameya Programming 4 12-01-2003 23:40
Change to Initializing Inputs and Outputs Jferrante Programming 4 07-01-2003 11:36
Dashboard Protocol Library archiver 2000 9 23-06-2002 22:24
New Innovation FIRST control system and the dashboard archiver 2000 0 23-06-2002 22:15


All times are GMT -5. The time now is 05:48.

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