![]() |
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? |
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.
|
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. :) |
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.
|
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). |
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.
|
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.) |
Re: dashboard protocol
Quote:
Quote:
|
Re: dashboard protocol
Quote:
|
Re: dashboard protocol
Quote:
|
| All times are GMT -5. The time now is 04:39. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi