View Single Post
  #1   Spotlight this post!  
Unread 20-01-2007, 18:32
kwilliam's Avatar
kwilliam kwilliam is offline
Registered User
FRC #1038
 
Join Date: Jan 2007
Location: Ohio
Posts: 8
kwilliam has a spectacular aura aboutkwilliam has a spectacular aura about
Question 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:
#define User_Byte1 txdata.user_byte1.allbits
#define User_Byte2 txdata.user_byte2.allbits
#define User_Byte3 txdata.user_byte3 /* This byte is now used for breaker panel byte 3 */
#define User_Byte4 txdata.user_byte4 /* This byte is now used for breaker panel byte 4 */
#define User_Byte5 txdata.user_byte5 /* This byte is now used for breaker panel byte 5 */
#define User_Byte6 txdata.user_byte6 /* This byte is now used for breaker panel byte 6 */
Is this breaker thing hardwired in the controller, so that we only get two User Bytes this year? Or is there a way to overwrite user bytes 3 through 6 with the camera data anyway?