Darwinbots Forum
Code center => Bugs and fixes => Topic started by: Welwordion on December 06, 2007, 05:50:47 PM
-
Ok there something seriously wrong with the numeration of .eyef when eye5 is the focus it returns different values, oh and why the heck are the numbers you have to store in focuseye all shifted 4 upwards(eye5 is 9 in focuseye)
used:
cond
*.refeye *.myeye =
*.eye5 0 >
start
1 *.eyef 61 add store
stop
end
and got multiple 1 in values even above 70
-
.eyef is read only. It will be equivalent to .eye5 when .focuseye is 0.
The values for .focuseye are the way they are so that a default value of 0 means .eye5 is the focus eye.
I suggest you read this (http://www.darwinbots.com/Forum/index.php?showtopic=1644).
-
Well I know that eyef is read only, but why does it return values larger 0 when I do not change the focuseye?
-
Well I know that eyef is read only, but why does it return values larger 0 when I do not change the focuseye?
If focuseye is 0, then the value of eyef will be whatever the value of eye5 is.
-
I really have a tendency to make an idiot out of myself right? ^^
Thought .eyef was meant to return which eye you focus on, but your right if I carefully read the link you gave me I would have understood that alone.
Ah well some people are just born hasty hahaha
-
Thought .eyef was meant to return which eye you focus on
.focuseye serves that role. It is read/write and it persists across cycles. So you can set it one place and read it back in another or read it back to check if someone infoshot you there for example.
Ah well some people are just born hasty hahaha
Doesn't bother me as long as I've had my coffee...