 | | Re: FindLight
|
|
(...) Use FastTimer instead of Timer for 10ms resolution. I should have remembered that last night. John Hansen (19 years ago, 27-Feb-07, to lugnet.robotics)
|
| |
 | | 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 (...) (19 years ago, 26-Feb-07, to lugnet.robotics)
|
| |
 | | Optimizing NXT-G blocks with implementation VI constants
|
|
I've written some explanation on using constants in NXT-G implmentation VIs to optimize program size during compilation. You can read it here: (URL) Ziv NXTasy.org (19 years ago, 26-Feb-07, to lugnet.robotics.nxt)
|
| |
 | | Re: FindLight
|
|
(...) 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 (19 years ago, 26-Feb-07, to lugnet.robotics)
|
| |
 | | 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 (...) (19 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 (...) (19 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 (...) (19 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 (...) (19 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 (19 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); (...) (19 years ago, 25-Feb-07, to lugnet.robotics)
|
| |
 | | Re: FindLight
|
|
(...) I don't see where "light" ever gets set. JB (19 years ago, 25-Feb-07, to lugnet.robotics)
|
| |
 | | Re: NXT Reset
|
|
I'm very glad to know you got it working again. Incidently, the '1.02' I was talking about isn't the version number on NXT-G itself, but on the USB driver it uses. If you haven't updated that, you can still occassionally get locking into 'clicking (...) (19 years ago, 25-Feb-07, to lugnet.robotics.nxt)
|
| |
 | | Re: NXT Reset
|
|
(...) As I was smiling myself to sleep past midnight, I was thinking of rummaging through my legos to find a part that would work. The antenna would do it. I'd even suggest to the powers that be, to stick one in the Educational set. It would work (...) (19 years ago, 25-Feb-07, to lugnet.robotics.nxt)
|
| |
 | | 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 (19 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 (...) (19 years ago, 25-Feb-07, to lugnet.robotics)
|
| |
 | | Re: NXT Reset
|
|
(...) It would be really cool if the girls could get OOBER back themselves. One way to do it is as follows: 1. Kill OOBER again. Not really, just hit the reset button for more than 10 seconds to force it into SAMBA mode again. 2. Let the girls do (...) (19 years ago, 25-Feb-07, to lugnet.robotics.nxt)
|
| |
 | | Re: NXT Reset
|
|
(...) Glory, glory! OOBER is alive! It took a couple of tries of the above procedure. It never registered as an Unknown Device. In fact, it never registered at all. Finally it came up as a Lego Device. At that point, I downloaded firmware and Ouala, (...) (19 years ago, 25-Feb-07, to lugnet.robotics.nxt)
|
| |
 | | RE: NXT Reset
|
|
(...) If you're using Windows, confirm that it is recognized as a USB device by Windows but that the device driver cannot be found. You do this by opening up the Windows "Device Manager" window and looking for an "Unknown Device". Of course before (...) (19 years ago, 25-Feb-07, to lugnet.robotics.nxt)
|
| |
 | | RE: legWay
|
|
(...) I can't speak for what actually got implemented. But Robolab's 2.9.2 firmware has almost all of the same features as the RobotC firmware. This includes the capability to customize the sensor scan rate from the default of 3 msec. The scan rate (...) (19 years ago, 25-Feb-07, to lugnet.robotics.nxt)
|
| |
 | | Re: NXT Reset
|
|
(...) I think my laptop has 1.02. I updated eveything when I needed the compass block. Although, I searched and couldn't confirm the NXT-G version number. Must not have looked hard enough. I've tried resetting another of the Educational NXT's and (...) (19 years ago, 25-Feb-07, to lugnet.robotics.nxt)
|