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 / *1417 (-20)
  Re: main() not defined?
 
Did you capitalise "Main"? It doesnt seem to work if you do. NQC is case sensitive, just like C. Trevyn. (...) (22 years ago, 21-May-02, to lugnet.robotics.rcx.nqc)
 
  main() not defined?
 
I get this error - "main() not defined" - when compiling. The code is copied straight from the Ferrari book. While C is the language of my choice, the line of code isn't so obtuse as to hide errors from me. So probably there is some other requisite (...) (22 years ago, 20-May-02, to lugnet.robotics.rcx.nqc)
 
  Re: Program() always returns 0
 
I believe any data source (not just timers/sensors/variables) can be used in SetUserDisplay. The big limitation is that local variables cannot be used since the display is updated in a global context independent of the tasks. If you know of data (...) (22 years ago, 8-May-02, to lugnet.robotics.rcx.nqc)
 
  Re: Program() always returns 0
 
Oops. Looks like a bug in the NQC API file. I just fixed the bug in the NQC source, but it's not major enough to warrant a new release yet. In the meantime, you can add the following lines to the top of of your source file as a work-around: #undef (...) (22 years ago, 8-May-02, to lugnet.robotics.rcx.nqc)
 
  Re: Program() always returns 0
 
SetUserDisplay does not work like that. You need to specify either a sensor, timer, or global variable. Once you have done that it will continuously update the display as the value changes. In your case you should write your program something like: (...) (23 years ago, 6-May-02, to lugnet.robotics.rcx.nqc)
 
  Program() always returns 0
 
The following code always displays 0 regardless of the program slot in which it is run. Is this a bug, or do I not understand the purpose of Program()? I'm using the 2.0 firmware and NQC 2.4 r2. task main() { SetUserDisplay(Program(),0); (...) (23 years ago, 6-May-02, to lugnet.robotics.rcx.nqc)
 
  Re: NQC and BricxCC problem
 
John, The crash is because NQC is trying to print out an error message but doesn't have legitimate information about the lexical location (file, line number, etc) of where the error occurred. The error itself is from the "#pragma init" line - (...) (23 years ago, 5-May-02, to lugnet.robotics.rcx.nqc)
 
  NQC and BricxCC problem
 
Dave (or anyone else who might have an idea), I'm trying to figure out a problem that a user reported regarding BricxCC and its interaction with NQC. (I've only tested it against the latest release of both BricxCC and NQC.) When attempting to (...) (23 years ago, 5-May-02, to lugnet.robotics.rcx.nqc)
 
  Re: Small bug in Bricxcc 3.3.4.5
 
hi John, thanks for the fast respons. After some invetsigation, I came to the conclusion that you are right, but I'm also right. (...) Yes this seems to work. But I'm not such a perfect programmer as you ;-) Now try to introduce an error and compile (...) (23 years ago, 22-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: Small bug in Bricxcc 3.3.4.5
 
(...) I'm trying to duplicate what you describe and I'm unable to do so (in version 3.3.4.5). I started a new file. Pressed F9. Clicked on a template containing a "field". The template was inserted into the editor and the first (or only) field was (...) (23 years ago, 22-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Small bug in Bricxcc 3.3.4.5
 
hi John, I think there's a small bug in BricxCC version 3.3.4.5 (and also in some previous versions). When you insert a template it's not possible to type directly into the "fields". Instead you've to move the cursor 1 line up and then go with F10 (...) (23 years ago, 21-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: MacNQC - iBook with USB tower
 
Hi Jenny and all other Mac users, I 've got no problems with my PowerBook G3/400 and the usb tower running MacNQC 3.0a4. I don't know if anyone must know that my Mac works with MacOS 9.2.2. I installed the driver and the four additional 4 ghost (...) (23 years ago, 15-Apr-02, to lugnet.robotics.rcx.nqc)
 
  MacNQC - iBook with USB tower
 
I'm using an iBook running MacOS 9.1 I've installed MacNQC 3.0a4. It worked fine with a serial tower prior to installing the USB drivers. I installed the USB drivers and placed the cooresponding files in the extensions folder. I restarted the system (...) (23 years ago, 15-Apr-02, to lugnet.robotics.rcx.nqc)
 
  BricxCC release 3.3.4.5
 
I've released another version of BricxCC. This release fixes a couple minor bugs. The Code Explorer feature wasn't processing a file when it was first opened (it was waiting until the first change was made). That should work correctly in this (...) (23 years ago, 9-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: Error Message
 
(...) I don't know if you are using BricxCC or not, but I get a single error when I try to compile this line of code if the target is set to Scout or Cybermaster. If I turn on the NQC 1.x compatibility mode via the Preferences dialog I get two (...) (23 years ago, 9-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: Error Message
 
The only thing I could think of is if NQC thinks you are generating code for some other device (e.g. CyberMaster). Try adding -Trcx2 to the command line to force NQC to target RCX2. If that doesn't fix it, email me the program and I'll take a look. (...) (23 years ago, 7-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Robot Controller 1.5
 
I have released a new (beta) version of Robot Controller, the ideal companion to NQC for Mac OS X. This version adds support for serial IR towers (provided you have a working serial port) and makes several other minor improvements. Download it now (...) (23 years ago, 7-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: Need help with NQC
 
"Russell Newman" <victoreden@netzero.net> wrote in message news:GtLuCA.38p@lugnet.com... (...) RCX (...) In what way is it misbehaving? When backing up, it only backs up for 3/4 of a second. Is that enough? When turning, it only turns for a maximum (...) (23 years ago, 4-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Error Message
 
Hi. Can anyone help me with a problem I'm having. I'm writing a fairly simple program in NQC and when I compile I get an error saying "undefined variable SENSOR_LIGHT" The line that generates this error is simply: SetSensor(SENSOR_1, SENSOR_LIGHT); (...) (23 years ago, 4-Apr-02, to lugnet.robotics.rcx.nqc)
 
  Re: lego turing machine
 
(...) I got to thinking, maybe this isn't so impossible after all. Imagine if you used 2x2 blocks with 2x2 tiles on top. Now you have something the RCX can lift. Run two pieces of train track parallel to each other, with four spots' width separating (...) (23 years ago, 29-Mar-02, to lugnet.off-topic.geek, lugnet.robotics, lugnet.robotics.rcx.nqc)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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