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

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::t7

Functions

uint8_t fsw::t7::t7_logical_channel (uint8_t slot, uint8_t ain)
 Logical calibration channel for a T7 input.
uint16_t fsw::t7::t7_uid (int board_id, int ain)
 uid of a T7 input: board_id * 100 + ain, the ESP32 scheme with the AIN as connector.
int32_t fsw::t7::t7_counts (double volts)
 The calibration "ADC code" for a T7 reading: microvolts, rounded and clamped to int32.
double fsw::t7::t7_volts (double counts)
 Volts from a calibration code.
std::array< uint8_t, 2 > fsw::t7::cjc_table_id (uint8_t slot)
 Cold-junction table id for a slot.