| | Connecting to RCX
|
|
Any pointers on how to get NQC to actually talk to the RCX would be gratefully received! I've searched around and tried everything that I can come up with but still can't make NQC send data correctly to the RCX. I've doublechecked that the serial (...) (24 years ago, 15-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: About Scout programming
|
|
(...) The Scout only supports passive sensors externally (touch and temperature). The light sensor is supposed to be used as an active sensor (although in some cases you can use it passively and get reasonable results). The Scout does have its own (...) (24 years ago, 15-Aug-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | About Scout programming
|
|
Hi I have a light-seeker NQC program for RCX, I want to port for Scout, does anyone know how to do it? Then does Scout use external light sensor? BR Zhengrong (24 years ago, 15-Aug-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | Re: Need help with my program
|
|
(...) Yeah, I could really make my programs simpler. Like I said, this is one of my first. (...) (24 years ago, 14-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Need help with my program
|
|
Your program is pretty difficult for me to follow...way too many tasks starting and stoping one another. For something as simple as the algorithm you described, you can probably take care of all the light seeking in a single task. If you still want (...) (24 years ago, 13-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC stdin & stdout
|
|
(...) I'm not sure about the specific calls, but when you invoke one program from another you typically can control what file handles are used as stdin, stdout, and stderr by the launched program. Usually these are just handed off from (...) (24 years ago, 13-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC stdin & stdout
|
|
(...) I know how to get NQC to wait for the stdin but I do not know how to get Windows to send a file or whatnot to that waiting port. Saving a file with '-' just made a file called '-'. sigh... Dean -- Coin-Op's For Sale!: (URL) Lego Workshop: (...) (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC stdin & stdout
|
|
(...) I think using '-' as the filename should work on windows as well as other platforms. (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | NQC stdin & stdout
|
|
I'm looking for some way in windows to send files to and from stdin & stdout. I'm not 'C' savvy. I'm building a macro set for a editor to NQC for the disabled and would like to talk to NQC via the above. If I can't talk to it directly I'd love a cmd (...) (24 years ago, 9-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Need help with my program
|
|
(...) Oops I forgot the code. Here it is. #define RUNTIME 100 #define REVERSTIME 30 #define TURNTIME 100 #define BUMPTURNTIME 100 #define STOPTIME 25 int lastlevel; // STARTUP TASK task main() { SetSensor(SENSOR_1,S...OR_TOUCH); (...) (24 years ago, 8-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Need help with my program
|
|
(...) Why don't you post the code here? That'll help us help you! (24 years ago, 8-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Need help with my program
|
|
I just started with NQC and attempted to make a light-seeking program. It is supposed to go forward for a wile and them stop and then turn a little, check the light level, turn again, check again and keep doing it until it gets darker then the last (...) (24 years ago, 8-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Arrays not working
|
|
(...) MacNQC 2.2a3 predates array support. MacNQC 2.2a3 uses NQC compiler 2.2a2, and arrays were added at NQC 2.2b1. You can find out what version of compiler is being used in the "About..." box. In theory the fix is simple...just release MacNQC (...) (24 years ago, 6-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Arrays not working
|
|
I'm trying to define an array with MacNQC 2.2a3, but this: int foo[10]; produces this error: Error: parse error untitled line 1 int foo[10]; ~ (24 years ago, 6-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: light sensor LED control
|
|
(...) The LED is on whenever you configure the sensor port to be an "active" port (ROTATION or LIGHT sensor type). You can turn off the LED by setting the port's type to one of the passive types (TOUCH, TEMPERATURE). Actually, you can get reasonable (...) (24 years ago, 5-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | light sensor LED control
|
|
I'm using NQC 2.2 (but I also had the problem with 2.1) to compile programs for my RCX. I don't see how to control whether the LED in the light sensor is on or off. Doing a SetSensor didn't do it...I had to run an old program from Gordon's Brick (...) (24 years ago, 4-Aug-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Military (was Seeking Programming Assistance)
|
|
Whatever your viewpoint (I certainly have mine), this is completely off-topic here. Please move this to the .off-topic.debate group. (24 years ago, 19-Jul-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Seeking Programming Assistance
|
|
Pavel, I'm very glad they are using something which is fast and easily adapted. The United States military includes some of the finest people in the world. I'm might proud to support them. Way to go, folks! Regards to all vets and current U.S. (...) (24 years ago, 19-Jul-00, to lugnet.robotics.rcx.nqc)
|
|
| | prg file converter
|
|
Hello all, I have some .prg files, compatible with the Lego Mindstorm software that I would like to convert to NQC compatible files, is it possible?? Thanks, Jim (24 years ago, 18-Jul-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Seeking Programming Assistance
|
|
However I would prefer them to use robots for mine clearing than humans! See > > supposed to detect "mines" Neil "Pavel Petrovic" <petrovic@idi.ntnu.no> wrote in message news:3972FA29.800201...ntnu.no... (...) we are (...) written a (...) from Mr (...) (24 years ago, 17-Jul-00, to lugnet.robotics.rcx.nqc)
|