 | | Re: Spybot studies: seek a world object
|
|
(...) Cool program. Keep up the great work! (...) You might be able to use PointToward_Bead without running into problems. __nolist void PointToward_Bead(const int& nTimes) { asm { 0xe3, &nTimes, 0x17, 81, 0x01, 1 }; } This ROM routine monitors an (...) (22 years ago, 10-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Spybot studies: seek a world object
|
|
/* beacon.nqc Uses World Relation Table to get a fix on and drive to another object. The object can be a Spybot, PC, or Spybot Controller. The program fixes on (i.e. drives to) the first object it finds. If that object disappears from the "radar", (...) (22 years ago, 10-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Re: Spybot studies: SetTxDirection() confusion
|
|
(...) How *does* the Spybot know the orientation (the ROM SDK calls it "aspect") of another Spybot? My (casual) observations indicate that all three emitters are on simultaneously and synchronously. How does the observing Spybot identify which one (...) (22 years ago, 8-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Re: Spybot Studies: display an 8-bit value
|
|
(...) In case anyone was wondering (yeah, sure :-), this line in my original post: lediDisplay = (x & 0x17) ((x & 8) * 4) ((x & 32) / 4) rearranges the bits so that the lower 6 bits can easily be read left to right (while looking at the bot from the (...) (22 years ago, 7-Nov-03, to lugnet.robotics.spybotics, FTX)
|
|
 | | Re: Spybot Studies: display an 8-bit value
|
|
(...) Mark Riley did this using MindScript but I don't recall having already seen the equivalent in NQC. (URL) than use a #define macro (speaking of which, I need to fix the syntax highlighting of preprocessor macros to account for multiple lines) I (...) (22 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Re: Spybot Studies: display an 8-bit value
|
|
(...) Another very simple thing to do to display this type of "debug" information is to send a message to an RCX, and display the value on the LCD of the RCX. That way, you don't need to mess with decoding the 8 bit binary number. This was not my (...) (22 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Spybot Studies: display an 8-bit value
|
|
I feel a little sheepish posting such simple code, but I needed to write this function anyway, and it's a legitimate illustration of a couple functions, which is the goal of "Spybot Studies" and this is a run-on sentence. /* led_8bit_display A (...) (22 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Re: Spybot studies: SetTxDirection() confusion
|
|
(...) I think these emitters are different wavelength, 940nm for the pointing up one, 880nm for the others. 940nm radiation is very close to red wavelength range and is easily seen by cameras CCD, even though they generally include an IR filter to (...) (22 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Re: Spybot studies: SetTxDirection() confusion
|
|
(...) Yes, there is a visible light cut-off filter built in remote command receiver. Philo (22 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
 | | Re: Spybot studies: SetTxDirection() confusion
|
|
(...) My understanding (which may well be incorrect) is that the Manas unit only responds to IR. Sending an RC message using the PC channel is probably not terribly useful since (as far as I am aware) there aren't any devices that use RC messages (...) (22 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|