 | | RE: good way to detect the proximity of the RCX?
|
|
Yes, that requires the RCX to receive. What I am looking for is a function which is much like the "is RCX in view" in the direct mode. This function allows the IR tower to detect any RCX in range, even the RCX is in in idle state, but just on, .... (...) (20 years ago, 10-Aug-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | Re: good way to detect the proximity of the RCX?
|
|
(...) Not sure what you mean here. You could certainly program some RCX's to "ping" each other to determine if they are in mutual IR range. RCX-A sends out a message & listens for a reply, while any other RCX that "sees" such a message immediately (...) (20 years ago, 10-Aug-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | good way to detect the proximity of the RCX?
|
|
Hi I understand that Robolab has a feature to detect if the RCX is in view thru the direct mode. However, this only means it has to face toward the IR tower which connected to the PC. Then, how about the way a RCX's capability to detect the whether (...) (20 years ago, 9-Aug-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | Re: ScriptEd - Question
|
|
(...) The MindScript compiler is very buggy when it comes to reporting the actual location of a compiler error, unfortunately. The wrapper I wrote that is used within BricxCC tries to account for the problems it has and adjust the error information (...) (20 years ago, 8-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: Extending IR communications
|
|
Hello all. The mirror trick works for sending the signals from the IR tower to the RCX (I'm only using a single RCX). However, the return signal the RCX wants to send to the tower isn't transmitted across the mirror. Since you mentioned leJOS and (...) (20 years ago, 8-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: Question - VB programming of RCX
|
|
(...) Sure. And VC++ and VC#. And now .NET (...) It was here (URL) (20 years ago, 8-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: Question - VB programming of RCX
|
|
(...) I don't know of many people who use VB to actually program the RCX. It is very possible to do, however, it's not like you may think. You can write a PC program in VB that will send the commands (a program) to the brick, but you still have to (...) (20 years ago, 8-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: Extending IR communications
|
|
In terms of power requirements and battery life, has anyone here actually quantified how much of a difference that makes? Its a damn good idea - as long as you have white, and relatively flat ceilings. If you dont want/are not able to reposition (...) (20 years ago, 6-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Question - VB programming of RCX
|
|
Hi, Are there people who program there RCX with Visual Basic (VB)? If so, where can i find info about that? I do have VB5. Regards, Ludo (20 years ago, 7-Aug-05, to lugnet.robotics.rcx)
|
|
 | | RE: Extending IR communications
|
|
Orient both RCXs so that they are pointing towards the ceiling. Set the RCX transmit power level to high (default is probably low power); there's probably some Lejos function to do this -- all it requires is setting one bit in an I/O register to 1. (...) (20 years ago, 5-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: Extending IR communications
|
|
(...) Have you tried a mirror? Infrared light IS light ! (20 years ago, 5-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: Errors compiling threads
|
|
(...) Hi Steve, Thanks, you were right about the compiler being ok. I changed "pid_t" to "tid_t" and got the thread statements working correctly. Finally, by consulting BrickOS documentation I found out the new syntax for the old "sys_time" command (...) (20 years ago, 4-Aug-05, to lugnet.robotics.rcx.legos)
|
|
 | | Re: ScriptEd - Question
|
|
(...) Check the line before that. Your code says: // direction_ // direction of monorail const delay1=1500 // minimum stop time in station (10 seconds) const delay2=3000 // maximum stop time in station (30 seconds) // I'm not sure exactly what (...) (20 years ago, 4-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: ScriptEd - Question
|
|
(...) Hi Steve, I see the message apearing in the status bar, but it's an error! Error is : Error (0xe0050801) from VPBrick compiler The error apears in following line: const delay1 = 1000 // minimum stop time in station (10 seconds) The word (...) (20 years ago, 4-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Extending IR communications
|
|
Greetings helpful companions. Now that I've buttered you up, let's move on... I've built a robotic arm using my RCX 1.0 brick. I'm controlling it via my computer with LeJOS (not important, I think). What my issue arises is if my arm rotates, the IR (...) (20 years ago, 4-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Re: Errors compiling threads
|
|
(...) I don't think it's a problem with the compiler. There have been changes to the BrickOS code over the years. I know the value sys_time has been replaced with the function Get_sys_up_time(). You should be able to add this line at the beginning (...) (20 years ago, 4-Aug-05, to lugnet.robotics.rcx.legos)
|
|
 | | Errors compiling threads
|
|
Hi all, I am new to C programming but I was able to build the C programming/compiler enviroment with cygwin and brickos 2.6.10 following the instructions at (URL) Later I upgraded to brickOS 0.9.0 and the compiler seems to be working fine most of (...) (20 years ago, 4-Aug-05, to lugnet.robotics.rcx.legos)
|
|
 | | Button events with NQC
|
|
Hallo, I am new to developing software for the RCX using NQC. I have some experience using Java programming with Lejos. My Question: Is there a way to react to button events, and how? What I mean is, that I would linke to ask, wheater the e.g. (...) (20 years ago, 3-Aug-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: ScriptEd - Question
|
|
(...) When you click the download button (or press Ctrl+D) it should give you a message in the status bar, at the bottom of the screen. Steve (20 years ago, 3-Aug-05, to lugnet.robotics.rcx)
|
|
 | | ScriptEd - Question
|
|
Hi, I'm a newby with RCX, and need verry urgent a program (readdy by next saturday), to control a few motors and switches as input. Now, i installed the SDK 2.5 and use the ScriptED (Mindscript Editor). Situation: A monorail track (same track for (...) (20 years ago, 3-Aug-05, to lugnet.robotics.rcx)
|
|
 | | Need RCX tutorial for kids
|
|
I'm looking for a programming tutorial geared for kids around age 10. I've found a few tutorials but can't seem to find what I'm looking for. Thanks for any help, Corey www.brickitgood.com (20 years ago, 31-Jul-05, to lugnet.robotics.rcx)
|
|
 | | Re: arrays or for loops
|
|
(...) It's a pleasure! (...) Have a look at an application of the For loop in my pump testing setup here: (URL) look at the waveform graphs that are produced: (URL) try to do that in NQC! CS (20 years ago, 28-Jul-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | RE: arrays or for loops
|
|
This is cool! Thanks a bunch. In terms of feasibility and more sophisticated coding, I would perhaps think coding in NQC will be more desirable as far as teaching high school or college kid. My assumption, of course. ---...--- -------- Elizabeth (...) (20 years ago, 28-Jul-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | Re: arrays or for loops
|
|
(...) At the main ROBOLAB startup menu, go to Investigator. Create a new project, say Young Brother. Choose Program level 5. Open the diagram window. Right click your mouse to bring up the function palette. Click on the G-code option to bring up the (...) (20 years ago, 28-Jul-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | RE: arrays or for loops
|
|
Sorry, I forgot to supply the link... It is at (URL) Mabrey (...) (20 years ago, 28-Jul-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | arrays or for loops
|
|
Hi I know how to put in a simple loop to, e.g., zero out an array of containers in inventor level 4. But, I found this on the net, it is nice and neat for loop - loops through 10 times to zero out 10 containers. All that was included inside a (...) (20 years ago, 28-Jul-05, to lugnet.robotics.rcx, lugnet.robotics.rcx.robolab)
|
|
 | | RE: Swan firmware crash!
|
|
I have put "fast0103.lgo" on web page. It appears that web page on my ISP (drjsoftware.com) doesn't match the local copy on my PC's hard drive. It will take me a few days to update. I'm also planning to release a firmware update in the same (...) (20 years ago, 22-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Attention please: Swan Problem demi-solved!
|
|
Here's the problem! I don't have fast0103.lgo, on swan's site there's only version 1.01. I think using that firmware (where can we find it?) and new NQC API all my problems are solved. About driving servo: to generate PWM for servo motors a (...) (20 years ago, 21-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Swan firmware crash!
|
|
(...) This is the old-style Swan API which is deprecated. The Swan API built into NQC uses MotorPower128(n) and SetMotorPower128(n, m). With the latest version of NQC you no longer need to include the old swan.nqh header file. The old swan.nqh file (...) (20 years ago, 21-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Attention please: Swan Problem demi-solved!
|
|
(...) Quite possibly you have an old version of the Swan firmware. My copy is called fast0103.lgo dated 2005-01-13. Dick sent me an updated version back then when I was working on the NQC API for his firmware. I don't know if it is available (...) (20 years ago, 21-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Attention please: Swan Problem demi-solved!
|
|
I tried to use files included in OLD test_swan.zip and RCX don't throw exception 40 no more! Then I tried a program with #include "swan.nqh" with latest NQC version and RCX throws exception no.5! To Dick Swan: NQC API is changed from old test_swan (...) (20 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Swan firmware crash!
|
|
(...) I already post a simple code that causes the error: (URL) task main{ SetMotorPower128(MTR_A,100); SetOutput(MTR_A,OUT_REV); Wait(300); Off(MTR_A); } The command SetMotorPower128 is the cause. (if I remove it, all works). Today I get also the (...) (20 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | RE: Swan firmware crash!
|
|
Exception error 40 is intended to indicate that you've tried to write to an invalid source parameter value. "Source parameter" is the first byte of an internal interpreter variable (0 is variable, 2 is constant, etc). If you send me the NQC source I (...) (20 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Swan firmware crash!
|
|
(...) Here is Bricxcc help about those commands: SetMotorPower128(const int motor, const int &v) Function - Swan Set the power of a motor to the specified value (using a scale from 0 to 127). SetMotorPower128(MTR_A, 100); ___...___ (...) (20 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Swan firmware crash!
|
|
(...) That's where your completely wrong. I can see the error, calls to motor power should be set out like this motorPower128(1) = MyVariableName; in this example the constant "1" means set the power to output B to the value specified by (...) (20 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Swan firmware crash!
|
|
(...) * Maybe I wasn't too clear, but really there isn't much to say: it is the SetMotorPower128 command that causes the error. * Another question is: why costants MTR_A or MTR_B don't work at all? Here's the code(all the code): task main{ (...) (20 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Swan firmware crash!
|
|
(...) You haven't given us(readers) much to go on. I had a similair problem but finding the solution was a bit of a fluke. If you could provide some info like program size, and a description of what the program does or some code we may have more (...) (20 years ago, 19-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Swan firmware crash!
|
|
Hi. I've installed new NQC and BRICXcc to test new functions in fast firmware by Dick Swan. I wanted to see if the new 1/1000th second resolution could let me drive a servo. When I try to use the SetMotorPower128 command, compiler is ok, downloading (...) (20 years ago, 19-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: I've got what Iain Hendry's got, was Re: Swan Firmware
|
|
(...) Hi John I've fixed the problem. I tracked it down by commenting out parts of my program. Luckily I started on the function containing the problem So I found it very quickly. Solving the problem took longer though. As you can see below I've (...) (20 years ago, 16-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: I've got what Iain Hendry's got, was Re: Swan Firmware
|
|
(...) Can you please email me the NQC source so that I can generate the listing to see if possibly the compiler is generating invalid code? John Hansen (20 years ago, 16-Jul-05, to lugnet.robotics.rcx.nqc)
|