Re: Mindsensors Sumo Eyes / internals + NXC driver
Posted: 22 Jun 2011, 19:23
I just said that the firmware has a field in the Input module IOMap that it calls "SensorRaw". That field is what you read when you call the SensorNormalized(port) function in NXC. In NXC this field is called NormalizedValueField. There is an NXC API function called SensorRaw(port) which does not return the value of the NormalizedValueField (which is called "SensorRaw" in the firmware source code). The SensorRaw(port) NXC API function returns the value stored in the Input module IOMap field that the firmware calls "ADRaw" which is called RawValueField by NXC.
For some reason you said:
John Hansen
For some reason you said:
And I have now had to repeatedly try to clarify this. No, you cannot read the normalized value via an API function called SensorRaw(port) in NXC even though in the firmware source code the normalized value field happens to be called "SensorRaw".aah, I see..SensorNormalized is reading the NormalizedValue (aka SensorRaw)...
The normalized value is available in NXC via SensorNormalized(port) or GetInput(port, NormalizedValueField).
and by SensorRaw(port) if I undestand correctly...?
John Hansen