kthermo(soundspeed)

koadrobot/devices/kthermo(soundspeed)

No description
kthermo(soundspeed)
@/kthermo(soundspeed)
TCnumber
Temperature in celcius.
RHnumber
Relative humidity in ragne [0.0, 1.0]
kthermo(soundspeed)
SOS
TC
RH
SOSnumber
The Speed Of Sound. (cm/sec)
To use the node in your project you should have the koadrobot/devices library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx)
{
    emitValue<output_SOS>(ctx, (0.606*getValue<input_TC>(ctx))+(1.24*getValue<input_RH>(ctx))+331.4);
}

Tabular tests

TCRHSOS
230.35345.772
400.10355.76401
50.80335.422