| | temperature sensor problem
|
|
It's probably something simple and i'm about to embarrass myself, but I'm trying to write the equivalent of an RCX Code temperature sensor watcher with NQC. The motors don't seem to shut off, even when the temperature gets less than 70... (I added (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: temperature sensor problem
|
|
Ben, Internally, the RCX only works with integers, but .1 degree resolution was desired for temperature sensors, so the sensor values are actually measured in .1 degree increments. A reading of 70 degrees F is stored as 700, not 70. If you change (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: temperature sensor problem
|
|
ahhh... there it is. page 312. thanks. :) i think i saw that 3-digit stuff before and i forgot about it. and thanks for the idea about the until. -ben (...) of (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: temperature sensor problem
|
|
(...) No problem. Most of the other environments hide this sort of thing programmer, but this relies on the fact that the programming environment knows how each sensor is going to be used. I didn't think this fit with the C philosophy*, so (...) (24 years ago, 4-Jul-00, to lugnet.robotics.rcx.nqc)
|