|
Re: Encoder v.s. Steering
Here's a simple change:
You know you "OperationMode" input for selecting between Autonomous and Teleop?
You could reduce coding errors by changing that to an enumerated variable. (With enumerated variables, the options are selected from a menu instead of being typed in)
For an example of an enumerated variable, look at the "DerivedRobotState" control in Teleop.vi
You could do the same with your "kickposition" input.
Make sure they are typedefs when you save them, and not regular controls. (As typedefs, when you change the functional properties of the control file, all instances of that control are changed accordingly. That means if you add a new option to the enumerated variable, that option will exist in all instances of it as soon as you save the file.)
__________________
-- Marshal Horn
Last edited by kamocat : 30-08-2010 at 20:58.
|