To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / *2539 (-5)
  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 (...) (22 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 (...) (22 years ago, 8-May-02, to lugnet.robotics.rcx.legos)
 
  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. (22 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 (...) (22 years ago, 7-May-02, to lugnet.robotics.rcx.legos)
 
  Re: Powered Sensors
 
No, the RCX knows nothing about the diodes. That is why devices like the light sensor only send a current signal in the range 0 - 0.32mA back to the RCX. This current then creates a voltage drop across the 10k reference resistor with respect to the (...) (22 years ago, 7-May-02, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR