Go to Post GP is asking for something then having twenty people answer graciously. - synth3tk [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 14-03-2011, 23:09
beth_hadley beth_hadley is offline
Registered User
FRC #0548
 
Join Date: Feb 2011
Location: Northville
Posts: 6
beth_hadley is an unknown quantity at this point
Autonomous Controls vs. Constants

Just wondering....has anyone else had issues with variables in autonomous? In our code, we like to make our variables controls so that they are easily adjustable from the front panel of autonomous. This worked fine while testing it at home. When we got to the competition, it became obvious that the code could not recognize these control values, even though we always set "make values default". There were no errors, but the robot practically made up its own numbers rather than use the ones we gave it. For example, rather than driving the 100 inches we set in the control, it drove something like 512 inches. Very random....We fixed the problem by changing all the controls back to constants. I think I remember a similar problem occurring last year with controls and constants, but I'm not sure. As a side note, the controls work fine everywhere else in the code (Begin, telop, periodic tasks, etc.)

Did anyone else have this issue? I'm curious as to why this occurs? It's got to be some kind of Labview thing...and word to the wise - USE CONSTANTS IN AUTONOMOUS!
Reply With Quote
 


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 09:35.

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