M
Michael
Hi
I'm setting a position for which I needed a function to return a number
from:
0 up to 180 then down to 0 again. The problem is to set lets say a
position at 32 but to have it exececuted only once.
Now I try something alike:
if (pPsi > 10 && pPsi < 40)
{
heading = 40;
}
which obviously doesn't work. It should only work one way but not both ways.
I need: first 32 do it, second 32 coming down, do nothing. Going back up
to 32 do it again and so on.
Many thanks
Michael
I'm setting a position for which I needed a function to return a number
from:
0 up to 180 then down to 0 again. The problem is to set lets say a
position at 32 but to have it exececuted only once.
Now I try something alike:
if (pPsi > 10 && pPsi < 40)
{
heading = 40;
}
which obviously doesn't work. It should only work one way but not both ways.
I need: first 32 do it, second 32 coming down, do nothing. Going back up
to 32 do it again and so on.
Many thanks
Michael