| | Re: FindLight
|
|
Please try some semicolons on your lines! Chris (...) //findlight.nqc #define A OUT_A #define C OUT_C int light, maxlight, time; int turntime = 500; //change to accomodate 1 turn task main() { SetSensor (SENSOR_2, SENSOR_LIGHT); ClearTimer (0); (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|
|
| | Re: FindLight
|
|
(...) I don't see where "light" ever gets set. JB (18 years ago, 25-Feb-07, to lugnet.robotics)
|
|
| | Re: Power Functions Element Pics (inc Plugs)
|
|
(...) hey mark, thank you for posting all of this info. i look forward to seeing the gallery but it seems to be taking forever to be moderated. is there a chance you could post some deep links? ondrew (18 years ago, 25-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | FindLight
|
|
I'm trying to write a simple program to make a roverbot-like robot seek for light. My basic idea is to use a timer ( Timer(0) ) to keep track of how long the robot has been turning and a variable (time) to remember the moment when the brightest (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|
|
| | RE: Robolab-Optimizer
|
|
Why not have them do the following experiment? Use the new 100 speed level. Connect a rotation sensor. Loop for power levels in step of 5 from 5 to 100 Wait a little bit for motors to get to steady state speed. Reset rotation count Wait 1 second (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|