Subject:
|
NQC 2.0 and some math questions
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Wed, 22 Sep 1999 15:08:01 GMT
|
Viewed:
|
2272 times
|
| |
| |
Dave,
You state in your documentation that * / and % can be used on constants only,
but your example has x * Y in it. What is it that you mean? Does this mean
that one can only do a y = 5*4 using these math routines? Does this mean that,
for instance, I can't do a :
x = SENSOR_1
y = x/2
...
?
I have, in general, always been somewhat confused about just what math I can
use on just what kind of expression. Can you help me out with this?
thanks,
DLC
|
|
Message has 1 Reply: | | Re: NQC 2.0 and some math questions
|
| A bug in the document. * and / are legal for any expressions. % is restricted to constants. I know the restrictions are confusing. The problem is that the RCX opcodes are somewhat incomplete. Now that I think about it, I can probably generate (...) (25 years ago, 23-Sep-99, to lugnet.robotics.rcx.nqc)
|
16 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|