![]() |
Re: two color tracking code
I believe what you are trying to do is to convert from one enumerated type (red, blue, invalid) to another (pink over green, green over pink). I don't have all the code in front of me, so I could have the order wrong.
Anyway, the easiest thing to do is to compare the first to a known quantity and set the second such as -- if alliance is red use pink over green. I have no idea what alliance will use what target, this is just an example. To do this in LV, right click on the Get Alliance output and create a constant. Set the constant to red. Drop an equals from the function palette and wire up. This produces a Boolean output. Next I'd drop a Select function which takes a Boolean and returns one of two possible values. Drag the Friend Colors control and to your diagram to create a constant, copy-drag another using the ctl key, and set them to the two choices. Wire one to the top and the other to the bottom. By the way, enums are really good for documenting, but LV will automatically convert most numbers, so if you happen to use 0 and 1 as your constants, that works too but is way harder to read. Greg McKaskle |
Re: two color tracking code
i thinks it becuase the focus of the camera .. move the focus while the camera is working
|
| All times are GMT -5. The time now is 02:57. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi