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 / *1497 (-10)
  Re: Problems with NQC and math operations
 
(...) Did you considered that the RCX has only integer variables. So, the allowed operation range is -32768 32767. If at any stage of your operation you exceed these limits, the result will be corrupted. For the use of sine and cosine with integer (...) (22 years ago, 3-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Re: Is there a NQC HowTo out there someplace?
 
"Jeff Merrick" <jeffmerrick@gmx.net> wrote in message news:H9p6GK.1ou@lugnet.com... (...) need (...) Jonathan (...) to (...) book; (...) I will have a look at the tutorial from Mark Overmars site. But I've got a "Teach yourself C in 21 days" by (...) (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with NQC and math operations
 
Dean, Well, that was the problem...changing the 10000 to 100 makes me get a value back, however I think the error is too big for the robots to navigate effectively..I'll probably have to learn legOS so I can use floating-point and get more precise (...) (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Re: now normally baumfamily != enteract
 
(...) Email to update crynwyr? Yes I hope so, yes I've tried, yes we're staying tuned, sorry I was unclear, that's what I meant when I mentioned I had seen a mailto channel work there before. But Lego I don't know how to reach. Do you mean to say (...) (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Re: Is there a NQC HowTo out there someplace?
 
I was in the same situation as you when I started out with NQC and I found the following resources helpful... Programming Lego Robots using NQC by Mark Overmars is a good tutorial...I probably used it the most to learn the basics of NQC... (...) (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Re: now normally baumfamily != enteract
 
(...) Email them perhaps? (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with NQC and math operations
 
Jeff, Your problem is with the 16 bit integer size that NQC uses. All integers are in the range -32768 to 32767. Using 10000 to simulate fixed point math operations is killing you. Everything works when you replace theta and D with constants because (...) (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Problems with NQC and math operations
 
Hi- I'm currently working on a project to get a dead-reckoning navigation system to work with NQC and the RCX. Right now I have a compass sensor and a rotation sensor hooked up and the idea is that with an angle and a distance, I can get an x and y (...) (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Re: Is there a NQC HowTo out there someplace?
 
(...) Well there are books called "Teach yourself C in 5 days", 21 days and so on... try amazon books. NQC is not actually a full C compiler, it has been simplified a great deal and if you learn the basics from a book, you'd be ready to go with NQC (...) (22 years ago, 2-Feb-03, to lugnet.robotics.rcx.nqc)
 
  Is there a NQC HowTo out there someplace?
 
Hello, I have reached the limits of what Mindstorm 2.0 software can do a long time ago and now want to go further. I think I would try the NQC. My problem is that I do not know anything about C or NQC. I have learned Pascal and Basic language (and (...) (22 years ago, 1-Feb-03, to 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