Results 1 to 3 of 3

Thread: MakeCompass Not working.

  1. #1
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default MakeCompass Not working.

    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.

    SCAR Code:
    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.

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    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 ) 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. :/

  3. #3
    Join Date
    May 2008
    Location
    Canada
    Posts
    665
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    bump. Still not resolved >.<

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •