Subject:
|
Op-code question
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sat, 12 May 2001 11:47:33 GMT
|
Original-From:
|
Evan Woo <evanwoo@ihug.co.%StopSpam%nz>
|
Viewed:
|
556 times
|
| |
| |
Hi,
With regard to the op-code
(http://graphics.stanford.edu/~kekoa/rcx/opcodes.html) for set motor power
(13/1b), there are three parameters:
byte motors: Bit field to specify up to three motors
byte source: Source type for power level. Only 0, 2, and 4 allowed
byte argument: Argument for power level
Can someone explain to me what is the parameter "source"? What are the values 0,
2 and 4 for? It seems it only works properly when I pass the value 2.
Thanks,
Evan
--
MIME ATTACHMENTS DISCARDED:
1. Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Length: 1286
|
|
Message has 1 Reply: | | Re: Op-code question
|
| (...) There are lots of different data sources in the rcx... 0 - variables 1 - timers 2 - constants 4 - random numbers etc. A lot of opcodes have arguments that are coded as source/value pairs. In this case, if you want to specify the argument as a (...) (24 years ago, 12-May-01, to lugnet.robotics)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|