Darwinbots Forum

Code center => Bugs and fixes => Solved Bugs => Topic started by: Testlund on October 27, 2005, 07:22:38 PM

Title: Run-Time error 6
Post by: Testlund on October 27, 2005, 07:22:38 PM
You have posted some solution for this one:

rob(n).mem(refvelup) = (rob(o).vx * Cos(rob(n).aim) + rob(o).vy * Sin(rob(n).aim) * -1) - rob(n).mem(velup)

...on the wikipedia. Right now I can't access that page. I'm not sure exactly where to put the fix. Some lines of code should be put at the beginning of the rutine, right? Where exactly is the beginning and should all those codes in thick black text be put there?  :wacko:
Title: Run-Time error 6
Post by: Griz on October 27, 2005, 09:32:42 PM
Quote
You have posted some solution for this one:

rob(n).mem(refvelup) = (rob(o).vx * Cos(rob(n).aim) + rob(o).vy * Sin(rob(n).aim) * -1) - rob(n).mem(velup)

...on the wikipedia. Right now I can't access that page. I'm not sure exactly where to put the fix. Some lines of code should be put at the beginning of the rutine, right? Where exactly is the beginning and should all those codes in thick black text be put there?  :wacko:
the fix didn't work anyway.

somewhere here, in some thread, in some message ....
or in a number of threads, messages ...
there was a solution put forth ...
but it doesn't work for me.

hell ... I can't even find it again!

your on your own bud.
Title: Run-Time error 6
Post by: Numsgil on October 27, 2005, 09:44:24 PM
There's always the classic:
Code: [Select]
Dim temp as long

temp = (rob(o).vx * Cos(rob(n).aim) + rob(o).vy * Sin(rob(n).aim) * -1) - rob(n).mem(velup)

if abs(temp) > 32000 then temp = sgn(temp) * 32000

rob(n).mem(refvelup) = temp

If a bit homely.
Title: Run-Time error 6
Post by: PurpleYouko on November 15, 2005, 10:30:28 AM
Another velocity bug. Fixed in v2.35.

thread moved to "fixed bugs"