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

Go to the source code of this file.

Functions

static void check (bool ok, const std::string &what)
static int32_t code_at (double t_c)
 The ADC code the board reports for an element at t_c.
static double read (int32_t code)
int main ()

Variables

static int g_failures = 0
constexpr double kRef = 2.5
constexpr double kUa = 1000.0
constexpr double kR0 = 1000.0

Function Documentation

◆ check()

void check ( bool ok,
const std::string & what )
static

Definition at line 21 of file test_rtd_board.cpp.

References g_failures, and ok.

Referenced by main().

◆ code_at()

int32_t code_at ( double t_c)
static

The ADC code the board reports for an element at t_c.

Definition at line 30 of file test_rtd_board.cpp.

References kR0, kRef, kUa, fsw::calibration::rtd::CVDCoeffs::R0, fsw::calibration::rtd::temp_to_resistance_cvd(), and volts().

Referenced by main().

◆ main()

◆ read()

Variable Documentation

◆ g_failures

int g_failures = 0
static

Definition at line 19 of file test_rtd_board.cpp.

◆ kR0

double kR0 = 1000.0

Definition at line 27 of file test_rtd_board.cpp.

Referenced by code_at(), main(), and read().

◆ kRef

double kRef = 2.5
constexpr

Definition at line 27 of file test_rtd_board.cpp.

Referenced by code_at(), main(), and read().

◆ kUa

double kUa = 1000.0

Definition at line 27 of file test_rtd_board.cpp.

Referenced by code_at(), main(), and read().