View Single Post
  #5   Spotlight this post!  
Unread 15-03-2011, 23:23
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: Autonomous Controls vs. Constants

Using controls in the way you describe is equivalent to using constants. There is no reason to change things to controls.

Just to be clear, though, there is a difference between controls that are connected to the connector pane and are actually parameters, and controls that are not.

If the controls are connected to the connector, the value is passed in or the default value is used.

If not connected, the initial value of the control is the default value, but programmatic or interactive changes persist until it leaves memory.

If you have concerns about the value being used, load the code interactively and see if the default values are the correct ones, or if the default was set to the incorrect value last time.

Greg McKaskle
Reply With Quote