Go to Post [I]'Twas the night before ship day, And all through the shop, Not a creature was stirring, Not even[/I] -- Naah, they'll never believe that. - GaryVoshol [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 16-07-2004, 14:50
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
Dashboard Robot Controller Packet Info??

Hi,
Writing a simple VB6 program to read the 26 byte data from the OI/RC view the Dashboard port. OI is easy to read and works well. RC uses three interlaced data packets.

How do I differentiate between the three data packets for the RC?

My attachment shows three packets. Depending upon when I open and close and open again, the packets move around.

Thanks,
Chuck
Attached Thumbnails
Click image for larger version

Name:	screenshot1.jpg
Views:	71
Size:	25.2 KB
ID:	2361  
  #2   Spotlight this post!  
Unread 16-07-2004, 17:29
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: Dashboard Robot Controller Packet Info??

Have you read IFI's Doc yet? it tells you everything but how to differentiate between RC and OI packets.

If you want, I'll send you a VB control to read and interprete the data.

[edit]here[/edit]

Last edited by Astronouth7303 : 16-07-2004 at 19:35.
  #3   Spotlight this post!  
Unread 19-07-2004, 08:21
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
RESOLVED! Dashboard Robot Controller Packet Info??

Hi,
I read the spec last Friday however the means to differentiate between the frames was not explicit. However, after posting this message last Friday, I reread it a few times and finally understood the stuff that read [CTRL_C Bit 7=0, ...]. Did some bit operations first thing this morning and everything is working fine now. :-)

So, it is necessary to read two specific bits in order to figure out which of the 3 frames are being viewed.

Byte 8, bit 4 and Byte 12, bit 7. The frames are then recognized by the following pattern respectively.
Frame 1 = 0,0
Frame 2 = 1,0
Frame 3 = 1,1

The code to read the values went like this. sRec stores the string of 26 characters.

nA4 = Asc(Mid(sRec, 8, 1)) And &H10 'byte 8, bit 4
nC7 = Asc(Mid(sRec, 12, 1)) And &H80 'byte 12, bit 7

Astronouth...I appreciate the offer for the 'control' to do this for me, but the fun in all of this programming is to write the code myself.

Thanks,
Chuck
  #4   Spotlight this post!  
Unread 22-07-2004, 15:07
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: RESOLVED! Dashboard Robot Controller Packet Info??

it's open source. An ActiveX control. I can almost garentee you're already using one. The MSCOMM control.
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
BLOWN COMPONENT! In need of 2004 Robot controller to borrow for 2 days Michael Luedtke Electrical 9 22-02-2004 22:15
New dashboard packet spec Ameya Programming 2 08-01-2004 19:59
Blue Man Group FIRST get-together? Gui Cavalcanti Chit-Chat 11 16-09-2003 18:11
delta_t data in Robot controller GreenDice Technical Discussion 3 06-01-2002 08:32
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


All times are GMT -5. The time now is 02:59.

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