|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||||
|
|||||
|
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
|
||||
|
||||
|
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
|
|||||
|
|||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |