Hi,
I have a small problem to express myself in the right way ^_^ with the db language. I wanted to modify a simple "move-forward"-gene so that it depends on the distance to the next object, seen with the fifth eye. For example, if eye5 gives a 0 back (nothing in sight), the bot will throttle up with 100% and if eye5 gives a 100 back (a object is VERY close to me), the bot will throttle up with 0%. So I thought about something simple like this:
(100 - *.eye5) / 100 * (*.maxvel - *.vel) = will be stored in .up
One idea to write it down in DB was:
cond
*.vel *.maxvel !%=
*.fixpos 0 =
*.robage 0 >
start
100 *.eye5 sub 100 div *.maxvel *.vel sub mult .up store
stop
The bot still moves, but I canĀ“t recognize if it really works the way I want to. Is there any documentation that could help me with the invers notation or can anyone else help me?
Thx Boreas