Author Topic: Vision  (Read 3810 times)

Offline Slavakion

  • Bot Neophyte
  • *
  • Posts: 14
    • View Profile
Vision
« on: May 31, 2005, 12:00:52 PM »
I have the following code for my vision/tracking. I was wondering if the *.eye4 0 = is necessary, or if it should be changed.
Code: [Select]
cond
  *.eye1 *.eye9 !=
  *.eye2 *.eye8 !=
  *.eye4 *.eye6 !=
  *.eye4 0 =
start
  *.eye1 *.eye9 sub
stop

cond
  *.eye2 *.eye8 !=
  *.eye4 *.eye6 !=
  *.eye4 0 =
start
  *.eye2 *.eye8 sub
stop

cond
  *.eye4 *.eye6 !=
start
  *.eye4 *.eye6 sub
stop

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
Vision
« Reply #1 on: June 01, 2005, 09:47:07 PM »
I'm not real sure I understand what your code is supposed to do. Normally I check eye5 first. If there is nothing in eye5 that I'll check the other eyes.

Endy :unsure:

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Vision
« Reply #2 on: June 01, 2005, 10:05:17 PM »
It's from PY's tutorial, right?  He'd be the one to ask.

I usually just use the *.eye4 *.eye6 one (or even just turn randomly until I see something) to keep my genome simple.
« Last Edit: June 01, 2005, 10:05:32 PM by Numsgil »

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Vision
« Reply #3 on: June 01, 2005, 10:19:26 PM »
I don't think that is out of my tutorial. I sure don't recognise any code needing eye4 to be zero.
It makes sense to check that eye5 is zero but eye4 is off center to start with so it would introduce a bias to the direction finding
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D