To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 124
123  |  125
Subject: 
Re: NQC 2 Request
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 16 Sep 1999 12:19:36 GMT
Viewed: 
3477 times
  
Dave,

Thanks for all the comments in the thread. As I have not looked at the
API supplied by the firmware I did not realise that the NQC api was such
a close match.

Adding the functions as you have suggested is a very neat solution.

It is nice to have alternatives in coding so that we can either just use
the primitives (Fwd, On, OnFor) where we learn less functions but write
more code (sometimes) or where we can use more complex functions such as
OnFwd and OnFwdFor.

The API for NQC 2.0 does seem very clean and I will be using it for all
future projects.

I found NQC 1.x good with my older son (age 7) within the RCX Command
Centre, although my younger son (5) is much better with the Lego
interface (and lots of help).

Many thanks

Dave

--
David Warnock
Sundayta Ltd



Message is in Reply To:
  Re: NQC 2 Request
 
(...) If anyone wants to add these functions into their own code... void OnFwdFor(const int m, const int &t) { Fwd(m); OnFor(m, t); } void OnRevFor(const int m, const int &t) { Rev(m); OnFor(m, t); } These should be efficient - everything will be (...) (25 years ago, 15-Sep-99, to lugnet.robotics.rcx.nqc)

8 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