 | | Re: Powered Sensors
|
|
Ok, I have gotten myself confused again. 0-0.32mA represents a voltage dropbetween 0 - 3.2 volts. Therefore the voltage that the RCX "reads" on theA2D is between 5 - 1.8 volts (1023 - 368 RAW)? To get a reading of 0 (RAW)it seems as though you would (...) (23 years ago, 8-May-02, to lugnet.robotics.rcx.legos)
|
|
 | | Re: Converting a float to an integer
|
|
(...) float f = 1.4; int i = (int)((i >= 0) ? i + 0.5 : i - 0.5); OR if (f >= 0) i = (int)(i + 0.5); else i = (int)(i - 0.5); This is assuming you want to round to the nearest integer. Just curious, where are you getting the ascii strings that you (...) (23 years ago, 8-May-02, to lugnet.robotics.rcx.legos)
|
|
 | | New MOC: RoboArm I
|
|
Hello all, I've posted pictures of my newest robotic creation, RoboArm I. (URL) actually happend by accident, I was tryin to find the simplest method to drive a turntable using 2 micro motors. I found a solution I was happy with using only a few (...) (23 years ago, 8-May-02, to lugnet.robotics, lugnet.technic, lugnet.build) !
|
|
 | | Re: RCX Command Center
|
|
Welcome Jonathan. RcxCC is no longer supported. Check out this site for the supported version. (URL) you have problems tell us what the file is that is missing. I am sure some one can help. -- Bob Fay THE SHOP (URL) Spitz" <lego-robotics@crynwr.com> (...) (23 years ago, 8-May-02, to lugnet.robotics)
|
|
 | | Re: Program() always returns 0
|
|
I believe any data source (not just timers/sensors/variables) can be used in SetUserDisplay. The big limitation is that local variables cannot be used since the display is updated in a global context independent of the tasks. If you know of data (...) (23 years ago, 8-May-02, to lugnet.robotics.rcx.nqc)
|
|
 | | Re: Program() always returns 0
|
|
Oops. Looks like a bug in the NQC API file. I just fixed the bug in the NQC source, but it's not major enough to warrant a new release yet. In the meantime, you can add the following lines to the top of of your source file as a work-around: #undef (...) (23 years ago, 8-May-02, to lugnet.robotics.rcx.nqc)
|
|
 | | RCX Command Center
|
|
This is my first message to the list, I hope I will contribute a lot to it. But first I'm trying to improve my robots with a more powerful programming. I tried RcxCC but it gives me an error because of a class or dll that isn't registered and I (...) (23 years ago, 7-May-02, to lugnet.robotics)
|
|
 | | Converting a float to an integer
|
|
Hopefully this isnt a silly question. Does anyone know how to covert a float to an integer? It doesn't appear that the function atoi exists. Michael. (23 years ago, 7-May-02, to lugnet.robotics.rcx.legos)
|
|
 | | Re: Powered Sensors
|
|
----- Original Message ----- From: "John Barnes" <barnes@sensors.com> Newsgroups: lugnet.robotics.rcx.legos Sent: Tuesday, May 07, 2002 2:23 PM Subject: Re: Powered Sensors (...) the (...) across (...) Ok... lets see if I understand this.... For (...) (23 years ago, 7-May-02, to lugnet.robotics.rcx.legos)
|
|
 | | Re: An OrthoGlide Mill
|
|
Thanks for your comments Rob. The crossed rubber belts are a last ditch attempt to remove the backlash from the joints. The use of friction pins caused the joints to become so stiff that the platform would not follow the action of the arms. I found (...) (23 years ago, 7-May-02, to lugnet.technic, lugnet.robotics)
|