| | 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)
|
|
| | Re: FindLight
|
|
Thanks. I thought setting maxlight before the 'if' statement would be enough, but moving it closer to the front (before the 'while' statement') did the trick. The bit after the while loop still gives me pain though. I've changed it a bit to be able (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|
|
| | Re: FindLight
|
|
(...) Looks like you're setting maxlight = SENSOR_2, then testing if (SENSOR_2 > maxlight), which will rarely (if ever) be true, because the value of SENSOR_2 is unlikely to change in such a short time. I think the first maxlight = SENSOR_2 (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|
|
| | Re: FindLight
|
|
Thanks for the reply. I see I overlooked something significant there. Going over it all again I think I don't need 'light' Also, the parse errors are due to my omitting the ; at the end of each statement I've also discovered that I should put some (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|
|
| | Re: Power Functions Element Pics (inc Plugs)
|
|
(...) I'm guessing there's a video. If so, I would recommend putting the video in a sub-folder by itself, as it is probably what is causing the delay. ROSCO (18 years ago, 25-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | 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)
|
|
| | Robolab-Optimizer
|
|
One of the features of the Optimizer function in Robolab 2.9.2: Brake the motor between PWM pulses so that you get a linear motor behavior (double the number means double the speed) Could anyone elaborate on this to allow a bunch of high school kids (...) (18 years ago, 24-Feb-07, to lugnet.robotics)
|
|
| | Re: Power Functions Element Pics (inc Plugs)
|
|
(...) You probably mean moderated ;) (...) Thanks for the info, can't wait to see the pics. ROSCO (18 years ago, 24-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | BricxCC & NBC/NXC News
|
|
The Sourceforge shell service finally came back on line today so I was able to update my web pages again. The official links to beta 27 are up now. I have also uploaded a revision to Danny Benedettelli's fantastic NXC Tutorial (and sample code). And (...) (18 years ago, 24-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | RICScript
|
|
You may not find this terribly interesting, but I have implemented an RIC to Text converter (a decompiler, if you will) which generates source code for an RIC file in a text format. Soon BricxCC will have support for writing and (...) (18 years ago, 24-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | Power Functions Element Pics (inc Plugs)
|
|
(...) Here are the pictures of the Power Functions elements from the Bulldozer 8275, including pictures of the plugs. (URL) (when modified). You can see it's a 4-wire system. There are basically 2 wires for power and 2 for control. I'll give more (...) (18 years ago, 23-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | Re: More IR Bulldozer pics
|
|
1). I am envious... 2). Can you post pictures of the underside of the connector, the battery box connector and the IR connector? I would much appreciate it, thanks. "Brian Davis" <brdavis@iusb.edu> wrote in message news:JDvpqM.JGG@lugnet.com... (...) (18 years ago, 23-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | Re: More IR Bulldozer pics
|
|
"Brian Davis" <brdavis@iusb.edu> wrote in message news:JDvpqM.JGG@lugnet.com... (...) (URL) on the gap in the motor housing (between the light bley and dark bley) , it looks like Mark already has taken his motor apart (or dropped it). Oh Mark!?! (...) (18 years ago, 22-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | Re: More Power Function MOC pics
|
|
(...) Well spotted Brian :-) The electric elements are those that will feature in the new Bulldozer. The rest of the MOC is parts from my own collection, NOT the rest of the Bulldozer! (that many beams with studs would be too much to hope for :-) ) (...) (18 years ago, 22-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | More IR Bulldozer pics
|
|
Here's a "rover robot" built,apparently, out of the new IR Bulldozer. August is much too far away. I like the look of those motors, not just for this but for GBC modules and other "simple" automation, and (if the IR system is compatiable) with the (...) (18 years ago, 22-Feb-07, to lugnet.technic, lugnet.robotics)
|
|
| | Re: spybotics header files
|
|
Nice (basic) nqc tutorial - actually I think I've seen it before The spybotics pdfs you sent are really nice!! regards, linmix (...) (18 years ago, 21-Feb-07, to lugnet.robotics)
|