Log in

View Full Version : MakeCompass Not working.



mrpickle
06-29-2010, 02:09 PM
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
06-29-2010, 08:16 PM
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
07-01-2010, 01:26 PM
bump. Still not resolved >.<