View Single Post
  #1   Spotlight this post!  
Unread 25-02-2015, 21:10
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Smart Dashboard - passing integers

Hi,
We've added a control that we hope will write integer values to the robot. We didn't see any problems changing the control to an I32 and passing that to the robot using the write numeric value VI. However on the robot side the read numeric value VI wants to return a floating point value. I don't see a way to specify that the value should be an integer. Can I safely use the floating point to I32 conversion to get the original integer value?
We don't have a practice robot to test our code on and I'd hate to find out on the first day of the regional that we will have to do something else.
Basically we set up a dashboard knob control with ten positions and want to test which position the knob is in on the robot for selecting different autonomous modes.
Thanks.