STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_ball_valve_position.cpp File Reference
#include <cmath>
#include <iostream>
#include <set>
#include <stdexcept>
#include <string>
#include "calibration/ValvePosition.hpp"
#include "elodin/DatabaseConfig.hpp"
Include dependency graph for test_ball_valve_position.cpp:

Go to the source code of this file.

Classes

struct  BoardChannels
 Per-board channel info for board-namespaced entity registration. More...

Functions

static void require (bool condition, const std::string &what)
static bool near (double a, double b, double tol)
static uint32_t counts_for_ma (double ma)
 The counts the board's 12-bit ADC reports for a loop current, as the firmware sees it.
int main ()

Function Documentation

◆ counts_for_ma()

uint32_t counts_for_ma ( double ma)
static

The counts the board's 12-bit ADC reports for a loop current, as the firmware sees it.

Definition at line 25 of file test_ball_valve_position.cpp.

Referenced by main().

◆ main()

◆ near()

◆ require()

void require ( bool condition,
const std::string & what )
static

Definition at line 15 of file test_ball_valve_position.cpp.

Referenced by main().