![]() |
User_Bytes taken over by breakers?
Our team is using the .NET (2.0) Composite Dashboard Viewer to get servo and PWM data from the robot while it is running. It is supposed to let you view the camera centroid and bounding box too, but that isn't working. According to the page on the Composite Dashboard Viewer, the camera data needs to be mapped to the dashboard packet as follows:
user_byte1 = x user_byte2 = y user_byte3 = x1 user_byte4 = y1 user_byte5 = x2 user_byte6 = y2 I could probably figure out how to set these values, but then I noticed this in ifi_aliases.h: Quote:
|
Re: User_Bytes taken over by breakers?
I'm not an expert at the data packets, so I might attach to this question the following one:
If you have an unused PWM (that has no servo cable attached to it) could you not use that value as an additional byte to send back to the OI? Typically we use fewer than half of our PWMs, but the data structure of the packet seems to show that they are all returned to the OI. Experts? Jason |
Re: User_Bytes taken over by breakers?
The breaker panel feedback isn't hardwired. It was a short bit of code (in Default_Routine(), I believe) in prior years. It is only useful if you're a) using the IFI breaker panel, and b) connecting the IFI breaker to the program port on the RC.
You're not doing either of those this year, because the IFI breaker panel isn't a permitted component. If the default code still refers to it, ignore it. |
Re: User_Bytes taken over by breakers?
Quote:
P.S. Alan caught my oversight. 255 isn't allowed over the radio link since a pair of them back to back is reserved as a special flag indicating a new packet is starting. You can set your PWMs to 255, but the Master will change them to 254 before radioing the packet back to the OI and your dashboard. |
Re: User_Bytes taken over by breakers?
Quote:
|
Re: User_Bytes taken over by breakers?
Quote:
|
Re: User_Bytes taken over by breakers?
Quote:
|
Re: User_Bytes taken over by breakers?
The reference to "allbits" is only on the first two user bytes. I think it's that way because the Dashboard Viewer program can show each individual bit of those two user bytes, and there is an associated bit array in the user byte structure that you can use to set those bytes' bits one at a time if you want to.
Don't worry about it. Just set User_Byte1 through User_Byte6 the way you want, make sure nothing else in Default_Routine() is setting them to something you don't want, and everything should work fine. |
Re: User_Bytes taken over by breakers?
Thanks! It works great.
Code:
//Send camera data to the Dashboard. |
| All times are GMT -5. The time now is 04:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi