SRL Archive - Help

MakeCompass Not working.


mrpickle

2010-06-29 10:09:12

I've been playing around with this function, adding degrees and 'n','s', etc. When I usedit, the program compiles, finds that my conditions are correct but doesn't do anything.


program new;
{.include srl/srl.scar}

begin
setupSRL;
Mouse(582,312,0,0,true);
wait(2000+random(2000));
if(rs_GetCompassAngleDegrees > 90) or (rs_GetCompassAngleDegrees < 90)then
begin
MakeCompass('90');
end else
begin
writeln('...');
end;
if(rs_GetCompassAngleDegrees > 90) or (rs_GetCompassAngleDegrees < 90)then
begin
MakeCompass('n');
end else
begin
writeln('...');
end;
end.

i luffs yeww

2010-06-29 16:16:14

I was having this problem a lot when working on an ivy cutter for myself. It only worked if I was around 70 degrees "away" (I use quotes because it's not really "away" from it, I just don't know how else to say it :p) from where I wanted it to go. If it was within the semi circle corresponding to it (west is within north/south, north is within east/west, etc.), it wouldn't move.

I'm not sure why. :/

mrpickle

2010-07-01 09:26:19

bump. Still not resolved >.<