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 / 12820
12819  |  12821
Subject: 
Re: Need more help with NQC
Newsgroups: 
lugnet.robotics
Date: 
Thu, 19 Oct 2000 10:17:43 GMT
Viewed: 
434 times
  
lego-robotics@crynwr.com (Giacomo) writes:

I downloaded the tutorialof Mark Overmars, a lot of example of NQC, but when
i write the first program of the tutorial i got at least 6 errors (maybe 8
!), here is the program:

task main()
{
onfwd(out_a);
onfwd(out_c);
wait(200);
onrev(out_a+out_c);
wait(200);
off(out_a+out_c);
}

You have to be careful with upper and lower case:

task main()
{
  OnFwd(OUT_A);
  OnFwd(OUT_C);
  Wait(200);
  OnRev(OUT_A+OUT_C);
  Wait(200);
  Off(OUT_A+OUT_C);
}

Jürgen

--
Jürgen Stuber <stuber@loria.fr>
http://www.loria.fr/~stuber/



Message is in Reply To:
  Need more help with NQC
 
I need some other help with NQC. I downloaded the tutorialof Mark Overmars, a lot of example of NQC, but when i write the first program of the tutorial i got at least 6 errors (maybe 8 !), here is the program: task main() { onfwd(out_a); (...) (24 years ago, 19-Oct-00, to lugnet.robotics)

7 Messages in This Thread:





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

Custom Search

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