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 / 18441
18440  |  18442
Subject: 
NQC for Spybotics in beta test
Newsgroups: 
lugnet.robotics
Date: 
Sun, 21 Jul 2002 18:58:56 GMT
Viewed: 
722 times
  
A preliminary version of NQC with Spybotics support is in beta test:

http://www.enteract.com/~dbaum/nqc/beta/index.html

My emphasis was on making things that are already defined for other
platforms (RCX2, Scout, etc) work for Spybotics.  A future release will
add support for some of the new features.

There isn't any documentation, but here's how to start...

1) type "nqc -api" to see the API file.  Look for things that are
defined for __SPY - those are where Spybotics support was added.

2) Add -Tspy to the command line to tell NQC to target spybotics

3) The motors are OUT_A and OUT_B.  The touch sensor is SENSOR_1, and I
think the light sensor is SENSOR_2 (haven't tried it yet).

4) Try this program.  It will use the six LEDs as a binary counter:

task main()
{
  int x = 0;

  SetLED(LED_MODE_BLINK, 0);
  while(true)
  {
    SetLED(LED_MODE_ON, x);
    ++x;
    Wait(20);
  }
}


Dave



1 Message 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