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 / 12601
12600  |  12602
Subject: 
RE: NQC Debug Question
Newsgroups: 
lugnet.robotics
Date: 
Wed, 27 Sep 2000 18:08:38 GMT
Original-From: 
Wilcox, Doug <doug.wilcox@imckesson.com#StopSpammers#>
Viewed: 
1840 times
  
Yes, it needed a semicolon. Ironically, I'd specifically checked for
semicolons before posting.

Ah, well, back to proofreading class.

Doug Wilcox
Senior Web Developer
iMcKesson Provider Solutions Group-Needham
160 Gould Street, Suite 130
Needham, MA 02494-2308
Phone: 781.453.2900 x 237
Fax: 781.455.7990
e-mail: Doug.Wilcox@iMcKesson.com
http://www.imckesson.com

"You see, I had this space suit. How it happened was like this ..."
(Opening lines from Robert A. Heinlein's Have Space Suit-Will Travel)


> -----Original Message-----
> From: Morgan, David [mailto:David.Morgan@pegs.com]
> Sent: Wednesday, September 27, 2000 1:54 PM
> To: 'Wilcox, Doug'; 'Lego-Robotics (E-mail)'
> Subject: RE: NQC Debug Question
> 
> 
> Doesn't MoveTime = 20 need a ; at the end?
> 
>   MoveTime = 20;
> 
> -----Original Message-----
> From: Wilcox, Doug [mailto:Doug.Wilcox@iMcKesson.com]
> Sent: Wednesday, September 27, 2000 10:39 AM
> To: Lego-Robotics (E-mail)
> Subject: NQC Debug Question
> 
> 
> I hate to bring this to the group, but I'm puzzled. I
> *finally* got over
> procrastinating about biting the NQC bullet ... but the
> following program
> gives me "parse errors" on lines 8 (repeat 10) and 19 (the
> penultimate "]".
> 
> Help! Where have I gone wrong.
> 
> #define TurnTime 25
> 
> int MoveTime;
> 
> task main()
> {
>   MoveTime = 20
>   repeat (10)
>   {
>     repeat (4)
>     {
>       OnFwd(OUT_A+OUT_C);
>       Wait(MoveTime);
>       OnRev(OUT_C);
>       Wait(TurnTime);
>       Off(OUT_A+OUT_C);
>       MoveTime += 5;
>     }
>   }
> }
> 
> Doug Wilcox
> Senior Web Developer
> iMcKesson Provider Solutions Group-Needham
> 160 Gould Street, Suite 130
> Needham, MA 02494-2308
> Phone: 781.453.2900 x 237
> Fax: 781.455.7990
> e-mail: Doug.Wilcox@iMcKesson.com
> http://www.imckesson.com
> 
> "You see, I had this space suit. How it happened was like this ..."
> (Opening lines from Robert A. Heinlein's Have Space Suit-Will Travel)
> 
> 



1 Message in This Thread:

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

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