To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26903
26902  |  26904
Subject: 
Re: FindLight
Newsgroups: 
lugnet.robotics
Date: 
Mon, 26 Feb 2007 15:05:08 GMT
Viewed: 
3895 times
  
In lugnet.robotics, John Hansen wrote:
In lugnet.robotics, linmix <linmix@gmail.com> wrote:
int time = 0;
#define TURNTIME 500; //change to accomodate 1 turn

I accidentally put a semicolon on the #define line above which is wrong.  The
program I posted will not compile unless the semicolon is removed.  My
apologies.  It's what I get for posting late at night.

John Hansen



Message has 1 Reply:
  Re: FindLight
 
Thank you for your well commented adaptation. I'm still experiencing the same problem even though the values for the different variables as shown by 'watch the brick' check out. The problem is in a different place. I wrongly assumed wait 'ticks' and (...) (18 years ago, 26-Feb-07, to lugnet.robotics)

Message is in Reply To:
  Re: FindLight
 
(...) //findlight.nqc #define A OUT_A #define C OUT_C int maxlight; int light; int time = 0; #define TURNTIME 500; //change to accomodate 1 turn #define ROTATE_CLOCKWISE OnFwd(A); OnRev(C); #define ROTATE_COUNTERCLOCKWISE OnFwd(C); OnRev(A); task (...) (18 years ago, 26-Feb-07, to lugnet.robotics)

10 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR