 | | Re: Type conversion.
|
|
FEDERICO SANTELLO wrote: <snip> (...) Federico - - Try doing it this way: (it's called a "cast") int temp; float dtemp; temp = 5; dtemp = (float)temp*3.5; printf("dtemp=%f\n",dtemp); Enjoy, - - - Nick - - - (28 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
|
| |
 | | Re: color sensors
|
|
I believe that you will find that most photo transistors are sensitive to a very narrow range of frequencies, mostly in the IR range. OTOH a photo resistor is sensitive to a much wider range of frequencies and may be usable with a (colour) filter. (...) (28 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
|
| |
 | | Type conversion.
|
|
Hi to all. I'm not very practice with IC. My answere are , how can i convert a integer number to a floating point number? I want to make a moltiplication between an intger number and a floating. I make this: int temp; float dtemp; dtemp=temp*3.5; (...) (28 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
|
| |
 | | Polaroid Sensors
|
|
I just finished wiring up the HB for dual sonar sensors... A couple of problems... The first and most important is the fact that the values returned look to be completely random and often flipping between positive and negative values... Could this (...) (28 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
|
| |
 | | Re: IR Sensors
|
|
James - - Here's a link to the QRB1114 data sheet: (URL) limited playing has shown two things: one - the sensor is very sensitive to visible light and therefore needs to be used with an auto-calibrate routine. two - you have to be very selective in (...) (28 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
|