|
In lugnet.robotics, John Hansen wrote:
> Recently I happened across the MindScript headers for the RCX in the SDK and saw
> some interesting macros for RCX communication. I decided to port them to NQC
> and possibly add them to the official built-in NQC API. I would be extremely
> grateful if someone out there would be willing to try out some of the functions
I forgot to include a few #defines:
#define SERIAL_PACKET_RC 0 // default
#define SERIAL_PACKET_SPYBOT 0
#define SERIAL_COMM_RC 7 // 4800/76KHZ/25%
#define SERIAL_COMM_SPYBOT 7 // was SERIAL_COMM_4800 + SERIAL_COMM_76KHZ
The RC function, by the way, is essentially identical to the code posted a long
time ago regarding how to communicate with the MANAS motor unit using NQC.
I'm not sure whether the Spybot functions are working. For one thing, the
previous Ping function (SendSpybotPing) is known to have worked in its original
version but I was using a different value for SERIAL_COMM_SPYBOT (3 rather than
7). The MindScript macros definitely use 7 but it is not outside the realm of
possibility that they are incorrect.
I'm trying to sort it all out but if anyone else out there would like to help
that would be great.
John Hansen
|
|
Message has 1 Reply:
Message is in Reply To:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|