| | Re: Q: Multitasking, and reacting to sensors
|
|
(...) Did you define the sonsors correctly ? For example : #define BUTTON SENSOR_2 #define DETECT_LEFT SENSOR_1 #define DETECT_RIGHT SENSOR_3 #define MOTOR_LEFT OUT_A #define MOTOR_RIGHT OUT_C task main() { SetSensor(BUTTON, SENSOR_TOUCH); (...) (24 years ago, 5-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | MST, 2nd
|
|
Hi, for those of you still interested: The new version of my MST-generator is now bug-free. See (URL) (ren to MST.nqc) (24 years ago, 5-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Q: Multitasking, and reacting to sensors
|
|
I've downloaded NQC, and got it running. I have been able to make the motors run, to make them run backwards, then forward, etc. However... I can't get the sensor thing to work right. I want to make a program for a robot that backs up and turns when (...) (24 years ago, 5-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: advice for game of tag?
|
|
(...) Hi Rik, I am familiar with the idea of "Tag" but I don't understand what this means "to see each other". Normally, it would be enough that a bot sends a message as soon as it has hit the other. Another problem: why do you use random numbers in (...) (24 years ago, 5-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Visual NQC 2001
|
|
I have another problem with Visual NQC 2001. If I dump my firmware, the program will not recognize the brick. "Runtime Error '68' Unable to communicate with PBrick from method 22" Of course, I could not download the firmware. I hope we could get (...) (24 years ago, 4-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Visual NQC 2001
|
|
(...) I found that if I use the DOS names instead of Windows name, it works. Example C:\PROGRA~1\RSSOFT~1...~1\NQC.exe instead of C:\Program Files\RSsoftware\Visual NQC 2001\NQC.exe Marc Klein (24 years ago, 4-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: MST...
|
|
Sorry, there still seem to be bugs in the prog. I'll call when I've fixed them... (24 years ago, 3-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | MST...
|
|
Hi, thanks to the help especially of Andreas Koeller, I was able to spot the errors in my program and even make it faster. The new version ist available for download at (URL) (rename to .nqc after downloading). Remember, it takes a graph of the form (...) (24 years ago, 3-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | advice for game of tag?
|
|
Hi, I've got 2 bots that I want to play tag with each other. The challenge is that I want them to see each other at a distance. I'm working on some code to combine the IR ports with the light sensors (which can detect IR) as follows: 1) each sends (...) (24 years ago, 3-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | nqc download firmware linux
|
|
Hi; I'm using RCX1.0 on linux (kernel 2.2.16; SuSE 7.0), nqc-version 2.0.2 and I have troubles with downloading the firmware under linux. I always have to change to Win98 and then the download works fine. On Linux I say at the prompt: nqc -firmware (...) (24 years ago, 2-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Visual NQC 2001
|
|
Tim Webber pointed out to me that I must set the path to nqc.exe in the preferences. All is well now, thanks to Tim. -- Bob Fay California, USA rfay@we.mediaone.net (URL) (24 years ago, 2-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Anyone using Mac beige G3
|
|
(...) The serial ports weren't changed in a major way (still RS-422, etc), but there could have been subtle changes to the driver/receiver that would cause problems when hooked to marginal RS-232 devices (such as the IR tower). Fred Martin reported (...) (24 years ago, 2-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Visual NQC 2001
|
|
<Runtime error 380 fix If you get Runtime error 380 during compile start you need to change the subdirectory where NQC.exe is stored. Use a directory without a space in the name. Example C:\NQC\nqc.exe This will work.> That did not work. I am still (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Anyone using Mac beige G3
|
|
(...) One thing to keep in mind about Mac serial ports is that they are not RS-232, rather they are RS-422. IIRC, RS-232 is a singled-ended voltage standard (ref to ground only), where RS-422 is a differential standard. The 'common' method of using (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Anyone using Mac beige G3
|
|
(...) I've had similar problems with a CyberMaster. It seems that CyberMaster Tower is powered by the serial interface (at least it is switched on by this power). On PC, the DTR line is switched high (12 V), and the CTS line is switched low (-12V). (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Error in program
|
|
(...) Already got that answer, but thanks. (...) Done with initialization (int CounterLength=0;), isn't it? Please correct me if I am wrong. (...) Yes, you are right. But it didn't occur to me the time I wrote it. (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Error in program
|
|
(...) Your array is too small, it runs from 0 to 6. Maybe you should also put a CounterLength = 0; before the first until. until(SENSOR_2 == 1); makes it wait for the sensor being pressed. Also, as a matter of style, I'd rather use (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Visual NQC 2001
|
|
Runtime error 380 fix If you get Runtime error 380 during compile start you need to change the subdirectory where NQC.exe is stored. Use a directory without a space in the name. Example C:\NQC\nqc.exe This will work. (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Error in program
|
|
Chris Hood wrote: > > Well I am just a newbie to NQC and to the whole Mindstorm experience, > however here is what the compiler says when I try to compile the program > that you submitted. > > > Line 1: Error: RCX does not support Arrays Hi Chris, (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
|
| | Anyone using Mac beige G3
|
|
Hi all, I having trouble connecting a PowerMac G3 (beige model, 233MHz) to the IR tower. I've tried NQC, MacNQC but keep getting "Error: no response from IR tower". I've also tried ZTerm to see if I can get an echo back. The Green LED in the tower (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|