| | 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 (...) (21 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 (...) (21 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 (...) (21 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 (...) (21 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 (21 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 (...) (21 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
| | Re: Spybot studies: SetTxDirection() confusion
|
|
I forgot to mention that the mana (set to channel 3) didn't respond to the laser LED's command message. Is this because the mana isn't sensitive to visible red or because the signal is somehow encoded differently when it comes out the laser? (or (...) (21 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
| | Re: Spybot studies: SetTxDirection() confusion
|
|
(...) Yes, there are multiple IR emitters. Two in front at nearly 90 degree angles, one in back, and a high-power one pointing up. Turns out my camera was only picking up the high-power emitter. I tried again with a different camera (the Vision (...) (21 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
| | Re: Spybot studies: photoelectric eye
|
|
(...) Of course you are correct! I repeated the process (unplugging the cable to simulate the failure of the comm port) and found that it detected the spybot through the USB Tower; then when I attempted to download the program, it activated the USB (...) (21 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|
|
| | Re: Spybot studies: SetTxDirection() confusion
|
|
(...) This portion of the Spybot NQC API is under substantial revision... :-) I based the constants on those found in Spybot.h which are apparently just plain wrong. The current version of my spy.nqh file has #define SERIAL_CHANNEL_HIGH_POWER 0 (...) (21 years ago, 7-Nov-03, to lugnet.robotics.spybotics)
|