|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
dashboard protocol
I'm working on a dashboard program and I need some more info about the protocol (the documentation isn't very detailed and I don't have access to the controller right now).
Quote:
Quote:
Lastly, the documentation keeps refering to specific bits within certain bytes. But is bit 0 the LSB or the MSB? Edit: One more thing: there's a byte called USER CMD, but I couldn't figure out what it is. Is it an extra "user byte" that I can play with, or does it actually do something important? Last edited by sciguy125 : 21-08-2005 at 18:04. |
|
#2
|
||||
|
||||
|
Re: dashboard protocol
If this is not something you will be using during competition you might consider getting an RS-232<->802.11 converter and connecting it to the program port. Its alot simpler, higher bandwidthm, and has the advantage of being bi-directional. There is a good chance you will be able to upload programs remotely.
Last edited by Rickertsen2 : 21-08-2005 at 21:39. |
|
#3
|
||||
|
||||
|
Re: dashboard protocol
The controller only sends one packet every program loop, which means you only get all three roughly 13 times a second.
The interlacing means that although each packet is received the same way, the data it contains could be that of any of the three data frames described. The only way to figure out which information the packet contains is to read the control bytes. Lastly, bit 7 is the MSB and bit 0 is the LSB. Hope that answers your questions. ![]() Last edited by Pat Fairbank : 21-08-2005 at 21:39. |
|
#4
|
|||
|
|||
|
Re: dashboard protocol
Is there any way for the code on the RC to know what data frame is about to go out? I was just rumaging through the code, but I couldn't find anything. It seems that the functions that handle the radio communications are distributed in binary form. Knowing what paricular frame is going out would make it easier to write the complementary RC code and also free up 2 more bytes to send data.
|
|
#5
|
||||
|
||||
|
Re: dashboard protocol
Nope, there's no way to tell what frame is being sent, since it's a function of the master microprocessor, not the user.
However, you might have noticed that all 16 PWM outputs are also sent out the dashboard, so if haven't got any Victors hooked up to some of those, you can use them to pass extra bytes. If you need even more bandwidth, you could probably set up some interlacing of your own (e.g. use one of the user bytes to describe what data is in the other five). |
|
#6
|
|||||
|
|||||
|
Re: dashboard protocol
My brother was working on some Dashboard code last year, but it being his first forray into the world of programming, he didn't meet much success. He ran into the problem of deciphering which data packet was the A, B, and C packets and couldn't figure it out in time for the season.
|
|
#7
|
|||||
|
|||||
|
Re: dashboard protocol
Quote:
Look at http://www.innovationfirst.com/FIRST...2004-01-07.pdf at the data frames. CTRL_A and CTRL_C both have information in them that differentiates the frames. (Now, how do you read that and get something useful from it? I'm not entirely sure...I'm no programmer.) |
|
#8
|
||||
|
||||
|
Re: dashboard protocol
Quote:
|
|
#9
|
|||||
|
|||||
|
Re: dashboard protocol
Quote:
|
|
#10
|
|||
|
|||
|
Re: dashboard protocol
Quote:
Quote:
Last edited by sciguy125 : 22-08-2005 at 11:45. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2004 Dashboard Protocal vs 2005 Dashboard Protocal | Kyle T | Programming | 4 | 14-03-2005 22:19 |
| Dashboard for .NET | seanwitte | Programming | 8 | 16-02-2005 10:09 |
| 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 |
| Dashboard Protocol Library | archiver | 2000 | 9 | 23-06-2002 22:24 |