STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
T7Convert.cpp File Reference
#include "t7/T7Convert.hpp"
#include <cmath>
#include <limits>
#include "calibration/SensorCalibration.hpp"
#include "calibration/TypeK.hpp"
Include dependency graph for T7Convert.cpp:

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::t7
namespace  fsw::t7::anonymous_namespace{T7Convert.cpp}

Functions

double fsw::t7::cjc_device_offset_k (double device_temp_k, double ain14_v)
 AIN14 offset (K) that makes slope*ain14_v land on the device's own temperature reading.
double fsw::t7::cjc_temp_c (double ain14_v, double device_offset_k, double cjc_offset_k)
 Cold-junction temperature (C) from a streamed AIN14 reading.
double fsw::t7::pt_psi (double volts, const config::T7Channel &ch)
 PT: linear between the signal's zero and full-scale outputs.
double fsw::t7::lc_kg (double volts, const config::T7Channel &ch)
 LC: a bridge's output is sensitivity x excitation at rated load.
double fsw::t7::tc_c (double volts, double cold_junction_c)
 Type K thermocouple: the measured EMF plus the EMF the cold junction subtracts.
double fsw::t7::rtd_ohms (double volts, const config::T7Channel &ch)
 RTD on an LJTick-Resistance: the divider's output volts -> the RTD's ohms.
double fsw::t7::rtd_c (double volts, const config::T7Channel &ch)
 RTD: ohms -> C on the IEC 60751 curve (full Callendar-Van Dusen, C term below 0 C).
const char * fsw::t7::calibrated_field (const std::string &kind)
 The Elodin field a calibrated channel of this kind publishes ("pressure_psi", ...), or "" for a kind with no calibrated table (VOLTAGE).

Variables

constexpr double fsw::t7::anonymous_namespace{T7Convert.cpp}::kNaN = std::numeric_limits<double>::quiet_NaN()
constexpr double fsw::t7::anonymous_namespace{T7Convert.cpp}::kZeroC = 273.15