Some guidance appreciated again guys!
I have the following code which is working as intended but wonder if there is a more elegant way of doing it? I experimented with a loop and goto but could not get it to work in the same way.
I use the output from L:AzCenter to sweep a line across my radar screen from left to right. Eventually I would like to be able to freeze it when the radar is switched off or just complete a single 'sweep'.
I have the following code which is working as intended but wonder if there is a more elegant way of doing it? I experimented with a loop and goto but could not get it to work in the same way.
XML:
<Update>
(L:AzCenter, degrees) 46 < (L:LoopRev, enum) 0 == && if{
(L:AzCenter, degrees) 2 + (>L:AzCenter, degrees) (L:AzCenter, degrees) 46 == if{ 1 (>L:LoopRev, enum) }
} els{
(L:AzCenter, degrees) 46 /-/ > (L:LoopRev, enum) 1 == && if{
(L:AzCenter, degrees) 2 - (>L:AzCenter, degrees)
(L:AzCenter, degrees) 46 /-/ == if{ 0 (>L:LoopRev, enum) }
}}
</Update>
I use the output from L:AzCenter to sweep a line across my radar screen from left to right. Eventually I would like to be able to freeze it when the radar is switched off or just complete a single 'sweep'.


