FERS 0.1.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
rotation_warning_utils.cpp File Reference
#include "rotation_warning_utils.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <format>
#include <limits>
#include <numbers>
#include <numeric>
#include <ranges>
#include <string>
#include "core/logging.h"
+ Include dependency graph for rotation_warning_utils.cpp:

Go to the source code of this file.

Namespaces

namespace  serial
 
namespace  serial::rotation_warning_utils
 

Functions

InferenceResult serial::rotation_warning_utils::infer_unit_from_value (RealType value, ValueKind kind) noexcept
 Infers the likely unit of a rotation value.
 
bool serial::rotation_warning_utils::should_warn (Confidence confidence, WarningSensitivity sensitivity) noexcept
 Returns true when a warning should be emitted for the confidence and sensitivity.
 
void serial::rotation_warning_utils::clear_captured_warnings () noexcept
 Clears the thread-local captured rotation warnings.
 
std::vector< std::string > serial::rotation_warning_utils::take_captured_warnings ()
 Returns and clears the thread-local captured rotation warnings.
 
void serial::rotation_warning_utils::maybe_warn_about_rotation_value (RealType value, params::RotationAngleUnit declared_unit, ValueKind kind, std::string_view source, std::string_view owner, std::string_view field)
 Emits or captures a warning when a rotation value likely uses the wrong unit.