Thread: Automation
View Single Post
Old 08-16-10, 07:30 PM   #43
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

fixed the looping problem with Sweep_scope. I've also 'beefed up' Sweep_scope:

parameter 5 will determine the options below:

# available options (parameter 5):
#
# bit 0 = lock the contact on contact spotted (if bit 2,3,4, or 5 isn't set then contact will be immediately unlocked)
# bit 1 = set current heading for contact on contact spotted
# bit 2 = stop sweep on contact spotted
# bit 3 = stop sweep and follow target on contact spotted
# bit 4 = pause script on contact spotted
# bit 5 = abort script on contact spotted

you have to do bitwise addition (you can use the calculator in Windows to do this - set it to Binary mode and enter the bit pattern wanted (1 for enabled and 0 for disabled) and then click on decimal to get your number to put into parameter 5)

i.e.: we want bit 0, bit 1, and bit 4. This would be 10011 in binary. This would equal 1 + 2 + 16 = 19. Parameter 5 would be 19.
Sweep_scope,0,0,360,90.0,19,0,5

So depending on how you set the options you can have the scope sweeping and reporting every new contact every time it spots one by locking it and unlocking it.
TheDarkWraith is offline   Reply With Quote