|
| | Re: IR-based proximity measurement
|
| (...) i have downloaded the SerialPing.nqc program hoping to get an easy to use proximity sensor. i have modified it to work with only one light sensor. but it shows always -90 on the display. ok, sometimes -89 too. can anybody tell me, what i did (...) (18 years ago, 9-Jun-06, to lugnet.robotics.rcx.nqc)
| |
| ir (score: 1.946) |
|
| | Re: IR remote control codes.
|
| thanks Kekoa, not only for this answer, but also for your great job in disassembling and documenting the the opcodes, I used them a lot in the past. (...) Well I think, I know all about it now, there a few strange things about it: 1. you don't have (...) (23 years ago, 6-Nov-01, to lugnet.robotics.rcx)
| |
| ir (score: 1.946) |
|
| | Re: Blocking IR
|
| (...) Do you mean dir_write? This is a problem with LegOS only. If you want non-blocking writes, comment out (in version 0.1.7 at least): while(dir_tx_state==TX_ACTIVE) ; // FIXME: scheduler integration if(dir_tx_state==TX_OK) return len; // (...) (25 years ago, 10-Jun-99, to lugnet.robotics.rcx.legos)
| |
| ir (score: 1.946) |
|
| | Re: Blocking IR
|
| (...) I forgot to mention. At the top of dir_write, you probably want to add: if (dir_tx_state == TX_ACTIVE) return -1; Or something to that effect, so you don't transmit a second message while a first is still transmitting, and so you have a way of (...) (25 years ago, 10-Jun-99, to lugnet.robotics.rcx.legos)
| |
| ir (score: 1.946) |
|
| | Re: Listening to IR via NQC
|
| (...) Yes, that is what I'm looking for. Unless anyone else knows of anything, I guess it's time to dive into the coding. :) (...) Yeah, that would work great. Does anyone have code that does this? (Don't want to reinvent the wheel...) I know of (...) (25 years ago, 24-Sep-99, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
| |
| ir (score: 1.946) |
|
| | Re: IR questinos and more
|
| Hi Sergey, (...) if you intend only to transmit, you may just disable receiving altogether. (...) for an axle. yes, angle=rotation. (...) using the rotation sensor. otherwise, slippage may occur. night, markus. (25 years ago, 27-Oct-99, to lugnet.robotics.rcx.legos)
| |
| ir (score: 1.946) |
|
| | RE: Long range IR mode.
|
| <Range mode intro snipped> (...) I'd redefine it something like this....use upper case BASE @ HEX \ To keep from evaluating HEX every time... : RANGE_SET ( f -- ) \ non-zero is long, 0 is short >R FFB7 DUP C@ R> IF FFFE AND ELSE 0001 OR THEN SWAP C! (...) (25 years ago, 9-Nov-99, to lugnet.robotics.rcx.pbforth)
| |
| ir (score: 1.946) |
|
| | Re: Replacement for IR Tower
|
| Actually, there is a whole newsgroup devoted to using a PlamPilot as the controller. lugnet.robotics.palm I have an Apple Newton 110 that I would love to get more use out of (I use it to track projects and my time involved in them now). -_eric (...) (25 years ago, 10-Mar-00, to lugnet.robotics.rcx)
| |
| ir (score: 1.946) |
|
| | Re: About IR Tower
|
| The tower must be connected before you boot the computer. Have you tried using the other COM port? If your mouse is using the other port, swap it and try the tower in that port. Remember to reboot. If all else fails, you need a friend to loan you a (...) (24 years ago, 23-Feb-01, to lugnet.robotics.rcx)
| |
| ir (score: 1.946) |
|
|
| ir (score: 1.946) |
|
| | Re: ir communication
|
| Yes there is. It is LNP it is availiable for windows or linux. I am just fiddling with the windows version see: (URL) I did not get it working just fine see also my post just before you (...) (23 years ago, 13-Aug-01, to lugnet.robotics.rcx.legos)
| |
| ir (score: 1.946) |
|
| | Re: IR transmission, strange coding ?
|
| hi Kekoa, thanks for your answer, About the strange stop bit, I was wrong (John Barnes also mailed me about that, thanks John) it was indeed the parity bit. About the startbit (which is inverted to the data) I'm (almost) absolutly sure, I measured (...) (23 years ago, 6-Nov-01, to lugnet.robotics.rcx)
| |
| ir (score: 1.946) |
|
|
| ir (score: 1.946) |
|
|
| ir (score: 1.946) |
|
| | Re: Problem with IR
|
| (...) Can you post the output generated by NQC when you add -v to the command line? nqc -Susb -TRCX2 -v -d filename.nqc > output.txt Or you could just email it to me directly. John Hansen (19 years ago, 24-Nov-05, to lugnet.robotics.rcx)
| |
| ir (score: 1.946) |
|
| | Re: Yet another Q: IR messages
|
| Hi Tobias, this could look something like this for example : int global_message; // place to store and read messages for every task task main() { start Read_Messages; // start Receive_Message Task while(true) { switch (global_message) { case 1 : (...) (24 years ago, 29-Mar-01, to lugnet.robotics.rcx.nqc)
| |
| ir (score: 1.946) |
|
|
| ir (score: 1.946) |
|
| | Re: Long range IR mode.
|
| (...) Just scanned through Kekoka's excellent dissection of the ROM routines. Seems like system variable/register at address $ff7b contains the relevant Long range/Short range bit flag, ie. bit 0 toggles the IR range 0 = Long, 1 = Short. Could I (...) (25 years ago, 9-Nov-99, to lugnet.robotics.rcx.pbforth)
| |
| ir (score: 1.946) |
|
| | Re: Long range IR mode
|
| (...) Disclaimer: I didn't try ANYTHING of this... According to Kekoa's Internals, the ROM routine 0x3250 (0x3266) with parameter 0x1770 sets the IR range to long (short). So you need to do something like: push 0x1770 jsr 0x3250 pop ; Stack should (...) (24 years ago, 27-Dec-00, to lugnet.robotics.rcx.pbforth)
| |
| ir (score: 1.946) |
|
|
| ir (score: 1.946) |