Quote:
Originally Posted by Bill_B
There is a legacy block available for NXT-g that will support the older rotation sensor. The cable you reference can connect the older rotation sensor to the NXT. The legacy block(s) can be found as patches at the Lego support site.
However, you mention wanting to control four motors with the NXT. I'm not sure how that's possible with only another rotation sensor. There are other, non-Lego, methods for gaining extra motor control from a single NXT. Perhaps you can be more specific about what you'd like to accomplish with your proposed configuration?
|
I don't think I made myself clear as to what I want to do.
First, imagine this:

When one rotation sensor is turned by hand, the RCX makes the other's value match it by turning on the motor in the appropriate direction and speed. Thus the motor's motion is dictated by the sensor readings from the rotation sensor. Now picture this:

In this picture the RCX uses the same programing but now the control rotation sensor has been replaced by a NXT programed to emulate a rotation sensor and give the RCX fictitious values.
I want to know how to program the NXT to do this. If I just knew how to control the raw IO from the sensor port on the NXT I think I have an idea.