Quote:
Originally Posted by TheDarkWraith
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.
|
This sounds awesome!!!
I had an idea and was wondering if it was possible to do for the lazy skipper ( IE, me)to add pause game on sound contact spotted. Say on a patrol I wanted to go and make some lunch or have a shower I could come back and see game is paused and then set up my solution.