View Single Post
  #4   Spotlight this post!  
Unread 02-04-2016, 13:19
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Vision tracking issues

Quote:
Originally Posted by Hadi379 View Post
All of our values were on the front panel with the assumption that the code would use those values, but now I'm thinking that they need to be constants in the actual code.
A front panel control has a "default value". That is what the control is set to when the program begins. If you are setting parameters for your code using front panel controls, you need to change the default before you build the project.

Do that by right-clicking on the control, choosing "data operations" from the popup menu, then choosing "make current value default" from the submenu.

After that, the control will essentially be compiled into your code as a constant.
Reply With Quote