 | | Re: mixing variable types in IC
|
| [Ben Davis] spake unto the ether: (...) Hmm, I think you want c = ((float)(x))/((float)(y)); Otherwise, the division will be done first as integers, giving an integer quotient, which you're then turning into a float. *Rich* (27 years ago, 14-Nov-99, to lugnet.robotics.handyboard)
| | |  | | mixing variable types in IC
|
| Hi John- You can convert quantities from one data type to another (it's called "casting", I believe). The following computes the quantity x/y, then converts it to a float: ---...--- int x, y; float c; float divide ( int x, int y) { c = (float) (...) (27 years ago, 14-Nov-99, to lugnet.robotics.handyboard)
| | |  | | mixing variable types in IC
|
| Now that I got past my nested function problem I have discovered that IC does not like mixing variable types. For instance, this results in an error: int x, y; float c; float divide ( int x, int y) { c = (x/y); return c; } IC will not let me (...) (27 years ago, 14-Nov-99, to lugnet.robotics.handyboard)
| | |  | | Re: Video Transmitters
|
| [glashan] spake unto the ether: (...) JDR Microdevices ((URL) sells a $25 short-range VHF TV transmitter kit. It's all analog, so there is some drift with warmup and it needs a very stable power supply, but otherwise it works great. The observer (...) (27 years ago, 14-Nov-99, to lugnet.robotics.handyboard)
| | |  | | Video Transmitters
|
| Hi all I wonder if anyone out there can help me with this: Im looking for a cheap video transmitter or circuit diagram. Ive got a small board camera on my bot and I need to find some way of sending the video to my TV. I dont want to go out and spend (...) (27 years ago, 14-Nov-99, to lugnet.robotics.handyboard)
| |