After a look in the player.lua I got the reason:
Code: Select all
if( angleDif > math.rad(15) ) then
Are there any other user with the same problem?
Code: Select all
if( angleDif > math.rad(15) ) then
Code: Select all
if( angleDif > math.rad(15) ) then
--keyboardRelease( settings.hotkeys.MOVE_FORWARD.key );
--keyboardRelease( settings.hotkeys.MOVE_BACKWARD.key );
if( angleDifference(angle, self.Direction + 0.3) < angleDif ) then
keyboardRelease( settings.hotkeys.ROTATE_RIGHT.key );
keyboardHold( settings.hotkeys.ROTATE_LEFT.key );
cprintf(cli.yellow, "Moving left, angelDif:"..angleDif.." / "..math.floor((angleDif*180)/math.pi).." degrees\n");
yrest(100);
else
keyboardRelease( settings.hotkeys.ROTATE_LEFT.key );
keyboardHold( settings.hotkeys.ROTATE_RIGHT.key );
cprintf(cli.yellow, "Moving right, angelDif:"..angleDif.." / "..math.floor((angleDif*180)/math.pi).." degrees\n");
yrest(100);
end
elseif( angleDif > math.rad(1) ) then
If you want I can deliver a screenshot also ...Lösche Ziel.
Wir gehen zum Wegpunkt #6, (-14260, -479)
Wir gehen zum Wegpunkt #7, (-13945, -904)
Moving right, angelDif:0.32072977039554 / 18 degrees
Moving left, angelDif:0.30279976252999 / 17 degrees
Moving right, angelDif:0.31762521071371 / 18 degrees
Moving left, angelDif:0.31491158483457 / 18 degrees
Moving right, angelDif:0.32397523455814 / 18 degrees
Moving left, angelDif:0.3463149262447 / 19 degrees
Moving right, angelDif:0.30325128194188 / 17 degrees
Moving left, angelDif:0.31586149090134 / 18 degrees
Moving right, angelDif:0.27353200166943 / 15 degrees
Moving left, angelDif:0.29712931499088 / 17 degrees
Moving right, angelDif:0.2976335897819 / 17 degrees
Moving left, angelDif:0.28606901598812 / 16 degrees
Moving right, angelDif:0.29058416892541 / 16 degrees
Moving left, angelDif:0.31036290680322 / 17 degrees
Moving right, angelDif:0.31364902847037 / 17 degrees
Moving left, angelDif:0.27115473060554 / 15 degrees
Moving right, angelDif:0.29245466304164 / 16 degrees
Moving left, angelDif:0.2690243243768 / 15 degrees
Moving right, angelDif:0.31361860830007 / 17 degrees
Moving left, angelDif:0.31711860746319 / 18 degrees
Moving right, angelDif:0.31209149848397 / 17 degrees
Moving left, angelDif:0.29628862151984 / 16 degrees
Moving right, angelDif:0.33348880800069 / 19 degrees
Moving left, angelDif:0.31691345198322 / 18 degrees
Moving right, angelDif:0.31356054979771 / 17 degrees
Moving left, angelDif:0.32066700709174 / 18 degrees
Moving right, angelDif:0.29759241134507 / 17 degrees
Moving left, angelDif:0.29895023971324 / 17 degrees
Moving right, angelDif:0.31257836472156 / 17 degrees
Moving left, angelDif:0.32063148976502 / 18 degrees
Moving right, angelDif:0.26686831293704 / 15 degrees
Lösche Ziel.
Versuche Spieler frei zu bekommen ... an Position -14270,-473. Versuch #1 von ma
ximal 10 Versuchen.
The value depends on the bot turning. How u can see in the debug prints which i have posted the bot turns about 35 degrees with one turn. The bot cann't correct values below half of this value (therefore a value of 18 instead of 15 will correct the problem also) because the new difference will be greater than the old difference. For what reason the bot turning can get higher values as 35 degrees per turn?rock5 wrote:The reason it works for you is because if the angle is less than 20 then it goes to the other sections of that 'if' statement which starts it moving forward again. If you get in a situation where 20 is not enough, it will get stuck again.
That sounds about right. I'd like to test if I get the same 35 angle swing but I'm moving a partition at the moment so it will have to wait.Andreas_B wrote:The value depends on the bot turning. How u can see in the debug prints which i have posted the bot turns about 35 degrees with one turn. The bot cann't correct values below half of this value (therefore a value of 18 instead of 15 will correct the problem also) because the new difference will be greater than the old difference. For what reason the bot turning can get higher values as 35 degrees per turn?
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest