View Single Post
  #7   Spotlight this post!  
Unread 16-02-2011, 00:32
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Reversing Relay for motor

Quote:
Originally Posted by TEAM-3871 View Post
Hey we are a Rookie team and i was wonding how do you change the RelayValue input to blue... sorry dont know much about this program yet

It's pretty simple, for every input and output to a function, if you hover your mouse over the wiring port to get the wiring mouse icon, right click, then go to create -> Constant, it will make a constant of the right type (you can do the same with controls and indicators). It's much faster than going into the number pallet or whatever.

In case you were wondering, the blue thing that says "Off" or "Forward" or whatever is called an "enum." The data type is simply a number, but the datatype makes it so that when there's a control or constant it gives a word instead of a number. In this case, it's much easier for the user to select "forward" than to remember that forward is 2, so they used an enum. They're in the numeric pallet, and you add the text by right clicking on them and selecting "Edit" (you can also do that to see which name is which number).

I assume that's what your talking about, because there are several different "blue things"
Reply With Quote