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 / 68
  Does NQC support arrays?
 
I'm building a BrickCode Reader. Basically it reads a stack of 2x2 bricks of various colors like a barcode. I've managed to hack together a prototype BrickCode Reader. I can feed it a stack of bricks and it beeps different tones based on which color (...) (26 years ago, 18-May-99, to lugnet.robotics.rcx.nqc)
 
  Re: Does NQC support arrays?
 
Hari Wiguna <hari@mindvision.com> wrote in message news:FBx2nH.B42@lugnet.com... (...) Nope, it doesn't. This is due to a limitation in the RCX environment. If it did support arrays you could have a max of 32 elements (assuming you didn't have any (...) (26 years ago, 18-May-99, to lugnet.robotics.rcx.nqc)
 
  Re: Does NQC support arrays?
 
Depending on what the value in the array needs to be you could use a bitmap (e.g. if you want to store true/false to denote the presence of something)... you could then represent the decimal value of the "array" of ones and zeros ... so, for (...) (26 years ago, 18-May-99, to lugnet.robotics.rcx.nqc)

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