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 / 1706 (-20)
  Forward or backward?
 
I've just got back into Mindstorms and I'm updating an old program. I'm writing a task that needs to know in which direction one of the motors is set. Now I could have sworn their was an easy way to do this, but my memory has gone blank and the help (...) (20 years ago, 15-Nov-04, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC & downloading NQC programs failing
 
(...) [snip, adjust timeouts] (...) I'm getting the same error with my Scout and Bricxcc/NQC for downloading programs, the direct control works fine. I found that having fresh batteries helped in getting programs to download successfully. I'll try (...) (20 years ago, 9-Nov-04, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
 
  Re: NQC contolling motors
 
(...) Not exactly. What NQC allows you to do is set one of 8 patterns of pulse width modulation (PWM) for an output. So for instance the highest power level is "always on" (9V for 100% of a cycle), while a lower power setting is a mixture of "on" & (...) (20 years ago, 7-Nov-04, to lugnet.robotics.rcx.nqc)
 
  NQC contolling motors
 
Hi all, I have some questions about controling RCX motors using NQC. I am using Lego 43362 motors. As I understand it has maximum RPM 219 at 9V In NQC I see that I can st the speed of the motors at 8 different stages. I can not find though how the (...) (20 years ago, 7-Nov-04, to lugnet.robotics.rcx.nqc)
 
  Re: bad motor output because of lego firmware?!
 
(...) That's right. I simply didn't expect any problems with NQC + Lepomux because I assumed that any RCX-OS has the ability to directly control the motor output. If I had used NQC a little bit more, I surely would've noticed that strange output (...) (20 years ago, 3-Nov-04, to lugnet.robotics.rcx.nqc)
 
  Re: SetUserDisplay?
 
(...) correct. Kevin (20 years ago, 30-Oct-04, to lugnet.robotics.rcx.nqc)
 
  Re: SetUserDisplay?
 
(...) Thanks Dave. I didn't notice the RCX2 option in Bricxcc, works great now! Just to clarify, the only difference between RCX 1 & 2 (from the compile target POV) is the firmware it's running? ROSCO (20 years ago, 30-Oct-04, to lugnet.robotics.rcx.nqc)
 
  Re: SetUserDisplay?
 
(...) My guess is that NQC hasn't been told to target the 2.0 api, so it is defaulting to 1.0 which does not have SetUserDisplay(). See (URL) for a more detailed explanation. Dave (20 years ago, 30-Oct-04, to lugnet.robotics.rcx.nqc)
 
  SetUserDisplay?
 
I can't seem to get SetUserDisplay to compile. When I compile my program, it gets "Error: undefined function 'SetUserDisplay'". I thought it might be the version of NQC (3.0a1) so I downloaded 2.5r3, but same error. Seems strange because (...) (20 years ago, 30-Oct-04, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC & downloading NQC programs failing
 
(...) See that is what makes Lugnet such a great resource! I finally decided to try out Bricxcc/NQC (after using BrickOS on Linux) and it worked fine when I was just downloading short "Hello World" programs, but I pretty soon ran into this problem (...) (20 years ago, 30-Oct-04, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
 
  Re: bad motor output because of lego firmware?!
 
(...) I suspect part of this delay is inherant to the firmware, and won't be "patchable" In any case, if you want your extender to be something you can market to most users, it should work with the standard firmware, without modification. Just my (...) (20 years ago, 28-Oct-04, to lugnet.robotics.rcx.nqc)
 
  Re: bad motor output because of bad lego firmware?!
 
(...) The firmware (at least version 0328) intentionally prevents you going directly from forward to reverse (or vice versa). I guess the designers felt this would be too rough on the motors. Try inserting a Wait(50) in your first loop. It'll work (...) (20 years ago, 28-Oct-04, to lugnet.robotics.rcx.nqc)
 
  bad motor output because of bad lego firmware?!
 
Hi there, I've spent the last two days trying to write a function in NQC that transfers data to the Lepomux I/O-extender. The data transfer is normally done by connecting the Lepomux to one of the motor ports. Each transition from one motor state to (...) (20 years ago, 28-Oct-04, to lugnet.robotics.rcx.nqc)
 
  Re: Rotation sensor limitation
 
(...) The simplest answer is to try it. Yes the limit that an RCX 16 bit integer can hold is 32767. From there things go to -32768 down to zero I think. (...) Kevin (20 years ago, 25-Oct-04, to lugnet.robotics.rcx.nqc)
 
  Rotation sensor limitation
 
I use a rotation sensor for a brick sorting machine – hence I need to know the limitation of the rotation sensor. What happens when the rotation sensor exceeds 9999 as shown on the LCD display? Apparently the rotation sensor can still keep track of (...) (20 years ago, 24-Oct-04, to lugnet.robotics.rcx.nqc)
 
  Re: NQC preprocessor behavior - constants evaluated?
 
Code listing of Untitled1: *** Var 47 = x *** Var 46 = y *** Task 0 = main 000 pwr ABC, 7 13 07 02 07 004 dir ABC, Fwd e1 87 006 setv var[47], 150 14 2f 02 96 00 011 setv var[46], 5 14 2e 02 05 00 016 mulv var[46], var[47] 54 2e 00 2f 00 Total size: (...) (20 years ago, 18-Aug-04, to lugnet.robotics.rcx.nqc)
 
  Re: NQC preprocessor behavior - constants evaluated?
 
(...) The preprocessor only evaluates expressions if they are used in a conditional preprocessor statement (i.e. #if), otherwise they are simply treated as a series of tokens for the compiler to deal with. However, the compiler does evaluate (...) (20 years ago, 17-Aug-04, to lugnet.robotics.rcx.nqc)
 
  NQC preprocessor behavior - constants evaluated?
 
Pardon a basic, low-level question, but I'm trying to minimize memory & execution time. Does the NQC preprocessor precalculate constant expressions before the compile pass? For instance: #define CONST 100 #define HALF CONST/2 task main() { int x,y; (...) (20 years ago, 16-Aug-04, to lugnet.robotics.rcx.nqc)
 
  Re: NQC problem...driving me insane!
 
(...) You should check to make sure your light sensor is in fact changing more than 5 counts. Start by changing the above code to 2 or 3. I don't recall with NQC, but with some languages (BrickOS) the values are backwards, so you may need to check (...) (20 years ago, 5-Jul-04, to lugnet.robotics.rcx.nqc, lugnet.org.ca.rtltoronto)
 
  Re: NQC problem...driving me insane!
 
(...) Well, actually, that code works fine (running MacNQC, a fairly recent version, with 2.0 firmware). One thing to check, code-wise, is to display SENSOR_1 on the LCD, and see what the numbers are (is it set to raw mode? Is the sensor bad (I've (...) (20 years ago, 4-Jul-04, to lugnet.robotics.rcx.nqc, lugnet.org.ca.rtltoronto)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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