Go to Post In order to change the world and make it a better place we must start with ourselves. - wendymom [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi