| | Re: FindWorld & ClearWorld Spybot NQC API additions
|
|
(...) SQUEAK!!! SQUEAK!!! SQUEAK!!! ;o) Philo (21 years ago, 21-Oct-03, to lugnet.robotics.spybotics, lugnet.robotics.rcx.nqc)
|
|
| | Re: FindWorld & ClearWorld Spybot NQC API additions
|
|
This is an area of robotics that particularly interests me. Thank you for doing all this work! Now...how do I put all together? Do I simply add your programming to the bottom of spy.nqh or are there particular locations where pieces should go? Would (...) (21 years ago, 21-Oct-03, to lugnet.robotics.spybotics, lugnet.robotics.rcx.nqc)
|
|
| | FindWorld & ClearWorld Spybot NQC API additions
|
|
Another addition to spy.nqh : #define REL_GT 0 #define REL_LT 1 #define REL_EQ 2 #define REL_NE 3 __nolist void FindWorld(int &v, const int relsrc, const int crit, const int& thresh) { asm { 0xd5, &v : 0x3000001, 0x2a + relsrc, crit, &thresh : (...) (21 years ago, 21-Oct-03, to lugnet.robotics.spybotics, lugnet.robotics.rcx.nqc)
|
|
| | Re: More Spybotics NQC API stuff (work in progress)
|
|
Some slight revisions to the previous submission. And now I have finally figured out how to get the Spybot to control Manas. I'm very puzzled by the equations for setting the output bytes. Any explanations would be greatly appreciated. #include (...) (21 years ago, 19-Oct-03, to lugnet.robotics.spybotics, lugnet.robotics.rcx.nqc)
|
|
| | More Spybotics NQC API stuff (work in progress)
|
|
A lot of this is untested and very rough. For some reason I still can't get the Spybot to send out RC messages to a Manas unit. Sending an RCX message (opcode 0xF7) is quite simple - either using the ROM subroutine SendRCXMessage or by using the (...) (21 years ago, 18-Oct-03, to lugnet.robotics.spybotics, lugnet.robotics.rcx.nqc)
|