View Single Post
  #2   Spotlight this post!  
Unread 16-02-2009, 20:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Set User Data Help

You don't want to cast a float as an integer. That would give you the bit pattern of a float interpreted as an integer, and it would pretty much be nonsense until cast back as a float. What you really want to do is add the float to the cluster as a float, then everything can be flattened as a TCP string buffer. Back on the PC, you can unflatten and you will receive the exact same values. Then you can display them however you like -- sliders, meters, numerics, graphs, etc.

Greg McKaskle
Reply With Quote