To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 5405
5404  |  5406
Subject: 
Re: using nqc for first time
Newsgroups: 
lugnet.robotics
Date: 
Mon, 21 Jun 1999 05:35:07 GMT
Original-From: 
Kevin Carlson <kevcarl@earthlink.AVOIDSPAMnet>
Reply-To: 
KEVCARL@stopspammersEARTHLINK.NET
Viewed: 
1235 times
  
Dave Baum wrote:

But the above scenario always happens. Always fails on the first
download try, succeeds (seeminly) on the second, and then doesn't run
the program properly for some reason. I'm able to repeat this every
time. I'm stumped. Any suggestions? Thanks in advance,

Very strange.  I've heard of some problems with *long* programs failing to
load, but never with something as short as test.nqc.  Try the following
command and e-mail me the results (dbaum@enteract.com)

nqc -d -l -v test.nqc

(this will print a code listing, then download in "verbose" mode).

Hopefully you'll have one run that fails, then a second that works.  I can
then compare the verbose traces to see what the differences are.  I'll
also be able to validate the actualy bytecodes being sent, etc.  If it
comes down to a simple communication reliability problem, there are some
options we can use to increase the backoff times and/or retry counts.

Cool. Thanks for checking this out. I did get one failure, and then one
success, and here are the outputs:

nqc -d -l -v test.nqc

*** Task 0 = main
000 InType     0, Switch             32 00 01
003 InMode     0, Boolean            42 00 20
006 OutDir     A, Fwd                e1 81
008 OutMode    A, On                 21 81
010 OutPwr     A, 7                  13 01 02 07
014 Test       1 != Input(0), 14     95 82 09 01 00 00 fa ff
022 PlaySound  0                     51 00
024 OutMode    A, Off                21 41

Downloading Program:Tx: 55 ff 00 10 ef 10 ef
Rx: 55 ff 00 10 ef
Tx: 55 ff 00 10 ef 10 ef
Rx: 14 fe 00 10 ef 10 ee 55 ff 00 ef 10 ef 10
Tx: 55 ff 00 50 af 50 af
Rx: 55 fe 00 10 af 10 af 55 ff 00 af 50 af 50
Tx: 55 ff 00 40 bf 40 bf
Rx: 15 fe 00 40 3f 00 bf 55 ff 00 bf 40 bf 40
Tx: 55 ff 00 70 8f 70 8f
Rx: 55 ff 00 70 8f 70 8e 55 ff 00 8f 70 8f 70
Tx: 55 ff 00 25 da 00 ff 00 ff 00 ff 1a e5 00 ff 3f c0
Rx: 51 ff 00 25 da 00 fe 00 ff 00 ff 1a e5 00 fe 3f 80 55 ff 00 da 25 00
ff da 25
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4d b2 01 fe 00 ff 04 e2 00 ff 32 cd 00 ff 00 fe 42 bd 00 ff
20 df 80 7e 21 de 81 7e 13 cc 01 fe 02 f8 95 6a 82 7d 09 f6 01 fe 00 ff
00 ff 97 08 10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 49 b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bc 00 ff
20 9f e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 f9 95 62 82 79 09 e6 01 fe
00 ff 00 ff 97 08 10 ee
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4c b2 01 fe 00 ff 04 eb 00 fe 32 c9 00 ff 00 fe 42 bd 00 ff
20 de e1 1e 81 7e 20 de 80 7e 13 ec 02 f8 85 6a 82 7d 09 f6 01 fe 00 ff
00 fe d6 08 10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 05 ff 00 4d 32 01 fe 00 ff 14 ea 00 ff 32 cc 00 ff 01 fe 42 bd 00 fe
20 9f e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 f8 85 6a 82 7d 09 f6 01 fe
00 ff 00 ff d7 28 10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 54 fe 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 01 fe 42 bc 00 ff 20 df
e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 07 f8 91 6a 82 7d 09 f6 01 fe 00 ff
00 ff d7 28 10 ef
error
No reply from RCX
nqc -d -l -v test.nqc

*** Task 0 = main
000 InType     0, Switch             32 00 01
003 InMode     0, Boolean            42 00 20
006 OutDir     A, Fwd                e1 81
008 OutMode    A, On                 21 81
010 OutPwr     A, 7                  13 01 02 07
014 Test       1 != Input(0), 14     95 82 09 01 00 00 fa ff
022 PlaySound  0                     51 00
024 OutMode    A, Off                21 41

Downloading Program:Tx: 55 ff 00 10 ef 10 ef
Rx: 15 fe 00 10 ef 10 ef 55 ff 00 ef 10 ef 10
Tx: 55 ff 00 50 af 50 af
Rx: 51 ff 00 50 af 50 af 55 ff 00 af 50 af 50
Tx: 55 ff 00 40 bf 40 bf
Rx: 55 ff 00 40 3f 40 bf 55 ff 00 bf 40 bf 40
Tx: 55 ff 00 70 8f 70 8f
Rx: 00 ff 00 70 8f 70 8f 55 ff 00 8f 70 8f 70
Tx: 55 ff 00 25 da 00 ff 00 ff 00 ff 1a e5 00 ff 3f c0
Rx: 55 ff 00 25 da 00 ff 00 ff 00 ff 1a e5 00 ff 3f c0 55 ff 00 da 25 00
ff da 25
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 de e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 fe c6 28 10 ee 55 ff 00 b2 4d 00 ff b2 4d
.Tx: 55 ff 00 45 ba 00 ff 00 ff 06 f9 00 ff fa 05 ff 00 51 ae 00 ff 21
de 41 be ac 53 a3 5c
Rx: 54 ff 00 44 3a 00 ff 00 fe 06 f9 00 ff fa 04 ff 00 51 ae 00 fe 21 de
41 be ac 53 a2 1c 55 ff 00 ba 45 00 ff ba 45
.Tx: 55 ff 00 51 ae 05 fa 56 a9
Rx: 55 ff 00 51 8e 05 fa 56 a9 55 ff 00 ae 51 ae 51
complete
Tx: 55 ff 00 30 cf 30 cf
Rx: 55 ff 00 30 cf 30 cf 55 ff 00 cf 30 b4 4b 21 de a4 5b
Battery Level = 8.6 V


But this time, after this second, successful download, the program
worked just as it should. Before, it would just turn on the motor and
hang with the motor active. The fact that I really haven't changed
anything between these two attempts seems to suggest (I'm guessing -
tell me if you agree) that maybe we have an intermittent cable or IR
comm problem. Could it be the cable? I have the IR tower connected to
the male-male DB9 cable that came with Mindstorms, which is connected to
the DB9-to-DB25 adapter that came with Mindstorms, which is connected to
a DB25-to-din8 Mac serial cable (old modem cable). That is plugged in to
the printer port. ( I issue set -e RCX_PORT b to talk to this port -- is
this correct?)

Okay. I tried this whole sequence a second time, and got a different
result this time. This time it took three times to download completely,
and the program misbehaves after downloading. I hit run, the little man
runs for a while, then stops. The motor is still running, but pressing
the touch sensor does nothing to stop the motor, even though I'm sure
the sensor is registering, because I see the dot appear under the sensor
"1" area of the led. I have to shut off the RCX to get the motor to stop
running. Here's the output from that session:


nqc -d -l -v test.nqc

*** Task 0 = main
000 InType     0, Switch             32 00 01
003 InMode     0, Boolean            42 00 20
006 OutDir     A, Fwd                e1 81
008 OutMode    A, On                 21 81
010 OutPwr     A, 7                  13 01 02 07
014 Test       1 != Input(0), 14     95 82 09 01 00 00 fa ff
022 PlaySound  0                     51 00
024 OutMode    A, Off                21 41

Downloading Program:Tx: 55 ff 00 10 ef 10 ef
Rx: 55 ff 00 10 cf 10 ee 55 ff 00 ef 10 ef 10
Tx: 55 ff 00 50 af 50 af
Rx: 14 ff 00 10 0e 50 af 55 ff 00 af 50 af 50
Tx: 55 ff 00 40 bf 40 bf
Rx: 55 ff 00 00 be 00 bf 55 ff 00 bf 40 bf 40
Tx: 55 ff 00 70 8f 70 8f
Rx: 54 ff 00 70 8f 70 8f 55 ff 00 8f 70 8f 70
Tx: 55 ff 00 25 da 00 ff 00 ff 00 ff 1a e5 00 ff 3f c0
Rx: 45 ff 00 25 da 00 ff 00 fe 00 ff 12 e5 00 ff 3f c0 55 ff 00 da 25 00
ff da 25
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4d b2 00 fe 14 eb 00 ff 32 cd 00 ff 00 fe 42 bd 00 ff 20 df
e1 1e 81 7e 21 de 81 7e 12 ec 01 fd 07 f8 91 6a 82 7d 09 f6 01 ff 00 ff
d7 28 10 ee
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 54 ff 00 4d 32 01 fe 00 fe 14 e3 00 ff 32 c9 00 ff 01 fe 42 b9 00 fe
20 df e1 1e 81 7e 21 de 81 7e 13 ec 02 fd 07 f8 91 6a 82 7d 09 f6 01 fe
00 fe 00 ff 86 28 10 ee
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 54 fe 00 49 32 01 fe 14 ea 00 ff 32 cd 00 ff 01 bc 00 ff 20 9f e1 1e
81 7e 21 de 81 7e 13 ec 02 fd 07 f8 95 62 82 79 08 f6 01 fe 00 ff d7 28
10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 54 ff 00 4c 32 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 fe
20 df e1 1e 81 7e 21 de 80 7e 13 ec 01 fe 02 fd 00 6a 82 7d 09 f6 01 ff
00 ff c7 28 10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4c b2 01 fe 00 fe 14 eb 00 ff 32 cd 00 ff 00 fe 42 bd 00 fe
20 9f e1 1e 81 7e 21 de 81 7e 12 ec 01 fe 02 f9 07 f8 95 6a 82 7d 09 f6
01 ff 00 ff d7 28 10 ef
error
No reply from RCX
nqc -d -l -v test.nqc

*** Task 0 = main
000 InType     0, Switch             32 00 01
003 InMode     0, Boolean            42 00 20
006 OutDir     A, Fwd                e1 81
008 OutMode    A, On                 21 81
010 OutPwr     A, 7                  13 01 02 07
014 Test       1 != Input(0), 14     95 82 09 01 00 00 fa ff
022 PlaySound  0                     51 00
024 OutMode    A, Off                21 41

Downloading Program:Tx: 55 ff 00 10 ef 10 ef
Rx: 15 ff 00 10 ef 10 cf 55 ff 00 ef 10 ef 10
Tx: 55 ff 00 50 af 50 af
Rx: 54 ff 00 50 af 50 ae 55 ff 00 af 50 af 50
Tx: 55 ff 00 40 bf 40 bf
Rx: 55 ff 00 40 be
Tx: 55 ff 00 40 bf 40 bf
Rx: 55 ff 00 40 3f 40 be 55 ff 00 bf 40 bf 40
Tx: 55 ff 00 70 8f 70 8f
Rx: 55 fe 00 70 8f 70 8f 55 ff 00 8f 70 8f 70
Tx: 55 ff 00 25 da 00 ff 00 ff 00 ff 1a e5 00 ff 3f c0
Rx: 05 ff 00 25 da 00 ff 00 ff 1a e5 00 ff 3f c0
Tx: 55 ff 00 25 da 00 ff 00 ff 00 ff 1a e5 00 ff 3f c0
Rx: 55 fe 00 25 da 00 fe 00 fe 00 ff 12 e5 00 ff 3f c0 55 ff 00 da 25 00
ff da 25
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 54 ff 00 4d 32 00 fe 00 fe 14 e3 00 ff 32 cc 01 bd 00 ff 20 de e1 1e
81 7e 21 9e 81 7e 13 ec 00 fe 02 fd 07 f8 91 4a 82 79 09 e6 01 fe 00 fe
00 ff 87 28 10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 49 b2 01 ff 14 cb 00 ff 32 cd 00 fe 01 bd 00 fe 20 df e1 1e
81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 94 6a 82 7d 09 e6 01 fe 00 ff
00 ff d7 28 10 ee
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 51 fe 00 4d b2 01 fe 00 fe 14 ea 00 ff 32 cd 00 ff 00 fe 42 b9 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 cc 01 fe 02 f8 94 6a 82 7d 09 f6 01 fe
00 fe 00 ff d7 28 10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4d 32 01 fe 00 ff 04 eb 00 ff 32 cc 00 ff 01 3c 00 ff 20 de
e0 1e 81 7e 21 de 80 7e 13 ec 01 fe 02 f9 91 42 82 7d 08 e6 00 fe 00 ff
00 ff d6 28 10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4d b2 01 fe 00 ff 14 ea 00 ff 32 cd 00 ff 00 fe 42 bd 00 ff
20 df e1 1e 81 7e 20 9e 81 7e 12 cc 01 fe 02 fc 06 f8 82 7d 09 f6 01 fe
00 fe d7 28 10 ef
error
No reply from RCX
nqc -d -l -v test.nqc

*** Task 0 = main
000 InType     0, Switch             32 00 01
003 InMode     0, Boolean            42 00 20
006 OutDir     A, Fwd                e1 81
008 OutMode    A, On                 21 81
010 OutPwr     A, 7                  13 01 02 07
014 Test       1 != Input(0), 14     95 82 09 01 00 00 fa ff
022 PlaySound  0                     51 00
024 OutMode    A, Off                21 41

Downloading Program:Tx: 55 ff 00 10 ef 10 ef
Rx: 55 fe 00 10 ee 10 ce 55 ff 00 ef 10 ef 10
Tx: 55 ff 00 50 af 50 af
Rx: 55 ff 00 50 0e 50 af 55 ff 00 af 50 af 50
Tx: 55 ff 00 40 bf 40 bf
Rx: 51 ff 00 40 3f 40 bf 55 ff 00 bf 40 bf 40
Tx: 55 ff 00 70 8f 70 8f
Rx: 44 ff 00 70 8f 70 8e 55 ff 00 8f 70 8f 70
Tx: 55 ff 00 25 da 00 ff 00 ff 00 ff 1a e5 00 ff 3f c0
Rx: 51 ff 00 21 9a 00 ff 00 ff 00 ff 12 e5 00 fe 3f 80 55 ff 00 da 25 00
ff da 25
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 c9 00 ff 01 fe 42 bd 00 ff
20 9f e1 1e 81 7e 21 9e 80 7e 13 ec 00 fe 02 fd 00 6a 82 7d 09 f6 01 fe
00 ff 00 ff 87 28 10 ee
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 54 fe 00 48 b2 00 fe 00 ff 14 c3 00 ff 32 cd 00 ff 01 b8 00 ff 20 9f
81 7e 21 9e 81 7e 12 ec 01 fe 02 f8 91 6a 82 7d 08 f6 01 fe 00 ff d7 28
10 ef
Tx: 55 ff 00 4d b2 01 fe 00 ff 14 eb 00 ff 32 cd 00 ff 01 fe 42 bd 00 ff
20 df e1 1e 81 7e 21 de 81 7e 13 ec 01 fe 02 fd 07 f8 95 6a 82 7d 09 f6
01 fe 00 ff 00 ff d7 28 10 ef
Rx: 05 ff 00 48 32 01 fe 00 ff 14 eb 00 ff 32 c9 00 ff 00 fe 42 bd 00 ff
20 9e e1 1e 81 7e 21 9e 81 7e 13 ec 01 fe 02 fc 07 f8 94 4a 82 7c 09 f6
01 fe 00 ff 00 ff d7 28 10 cf 55 ff 00 b2 4d 00 ff b2 4d
.Tx: 55 ff 00 45 ba 00 ff 00 ff 06 f9 00 ff fa 05 ff 00 51 ae 00 ff 21
de 41 be ac 53 a3 5c
Rx: 45 ff 00 41 ba 00 ff 00 fe 06 f9 00 ff fa 05 ff 00 51 8e 21 de 41 be
ac 53 a3 5c
Tx: 55 ff 00 45 ba 00 ff 00 ff 06 f9 00 ff fa 05 ff 00 51 ae 00 ff 21 de
41 be ac 53 a3 5c
Rx: 55 ff 00 41 ba 00 ff 06 f9 00 ff fa 01 ff 00 51 ae 00 ff 21 9e 40 be
ac 53 a3 5c
Tx: 55 ff 00 45 ba 00 ff 00 ff 06 f9 00 ff fa 05 ff 00 51 ae 00 ff 21 de
41 be ac 53 a3 5c
Rx: 54 ff 00 45 3a 00 ff 00 ff 06 f9 00 ff fa 05 ff 00 51 ae 00 ff 21 de
41 3e ac 53 23 5c 55 ff 00 ba 45 00 ff ba 45
.Tx: 55 ff 00 51 ae 05 fa 56 a9
Rx: 10 ff 00 51 ae 01 fa 56 88 55 ff 00 ae 51 ae 51
complete
Tx: 55 ff 00 30 cf 30 cf
Rx: 15 ff 00 30 ce 30 ce 55 ff 00 cf 30 cb 34 21 de bb 44
Battery Level = 8.7 V


As a work around, you may want to try playing with the near/far settings
for IR.  Try flipping the switch on the IR tower.  To change the RCX's
setting, use

nqc -near
  or
nqc -far


I tried this, and it doesn't seem to make much difference.



Personally, I have the best results with near mode, but I've heard an
occasional report of the opposite behavior.

Dave

--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message has 1 Reply:
  Re: using nqc for first time
 
The traces confirm a couple of things: 1) Normally the IR tower will "echo" all data that it sends (just a side effect of the LED blasting out the light and the phototransistor picking it up). In your case there are a significant amount of bit (...) (25 years ago, 23-Jun-99, to lugnet.robotics)

Message is in Reply To:
  Re: using nqc for first time
 
(...) Very strange. I've heard of some problems with *long* programs failing to load, but never with something as short as test.nqc. Try the following command and e-mail me the results (dbaum@enteract.com) nqc -d -l -v test.nqc (this will print a (...) (25 years ago, 20-Jun-99, to lugnet.robotics)

14 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
17 hours ago
Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR