View Single Post
  #1   Spotlight this post!  
Unread 16-02-2009, 11:15
jrz126 jrz126 is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Erie, PA
Posts: 12
jrz126 is an unknown quantity at this point
Set User Data Help

I'm trying to send some camera target info back to the driverstation. I'm not sure how to send back the "area %" though.

At first i tried sending it directly through and I would only see a value of 0-1 on the driverstation. I think the area % was actually reading 0.4-0.5 so it may have just been rounding?

I tried typecasting it to a 32bit integer. which converted it from a floating point to a big integer number. On the dashboard though, it appears that it is only sending the least significant bits.

Is there an easy way to break this number up into an array of 8 bit numbers? Also, what does the little red mark mean on the last input to the build array block and the set user data block?
Attached Thumbnails
Click image for larger version

Name:	setuserdata.JPG
Views:	34
Size:	14.4 KB
ID:	7475  
Reply With Quote