To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / *5564 (-5)
  Re: Type conversion.
 
(...) Hi, what you want to do is called type casting,ie. you must explicitly specify the type. I've included some sample code that uses it. Because the beeper function expects a float but the knob function returns an integer, you have to modify the (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  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 - - - (26 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. (...) (26 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; (...) (26 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 (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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