dimval 0.2.0
Modern C++23 header-only library of dimensional values (units, measures, ranges)
Loading...
Searching...
No Matches
antenna.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <dimval/define.hpp>
9#include <dimval/units/rf.hpp>
10#include <dimval/units/si.hpp>
11
12DIMVAL_DEFINE_MEASURE(AntennaGain,
13 ::dimval::Decibel,
14 "antenna_gain",
15 "Antenna Gain",
16 ::comms::Icons::mdi::antenna,
17 ::comms::Colors::mui::green[400])
18
20 ::dimval::Degree,
21 "azimuth",
22 "Azimuth",
23 ::comms::Icons::mdi::compass,
24 ::comms::Colors::mui::deep_purple[400])
25
26DIMVAL_DEFINE_MEASURE(Elevation,
27 ::dimval::Degree,
28 "elevation",
29 "Elevation",
30 ::comms::Icons::mdi::angle_acute,
31 ::comms::Colors::mui::deep_purple[400])
32
33DIMVAL_DEFINE_MEASURE(PolarizationAngle,
34 ::dimval::Degree,
35 "polarization_angle",
36 "Polarization Angle",
37 ::comms::Icons::mdi::angle_acute,
38 ::comms::Colors::mui::deep_purple[500])
39
40DIMVAL_DEFINE_MEASURE(WavelengthMeasure,
41 ::dimval::Wavelength,
42 "wavelength",
43 "Wavelength",
44 ::comms::Icon::from("ph:wave-sine"),
45 ::comms::Colors::mui::teal[500])
46
48 ::dimval::Percent,
49 "vswr",
50 "Voltage Standing Wave Ratio",
51 ::comms::Icons::mdi::sine_wave,
52 ::comms::Colors::mui::red[400],
53 static constexpr int default_precision = 2;)
54
55DIMVAL_DEFINE_MEASURE(ReturnLoss,
56 ::dimval::Decibel,
57 "return_loss",
58 "Return Loss",
59 ::comms::Icons::mdi::chart_bell_curve,
60 ::comms::Colors::mui::red[400])
61
62DIMVAL_DEFINE_MEASURE(SheetResistance,
63 ::dimval::OhmSquare,
64 "sheet_resistance",
65 "Sheet Resistance",
66 ::comms::Icons::mdi::grid,
67 ::comms::Colors::mui::brown[500])
68
69DIMVAL_DEFINE_MEASURE(PropagationDelay,
70 ::dimval::Second,
71 "propagation_delay",
72 "Propagation Delay",
73 ::comms::Icons::mdi::timer_outline,
74 ::comms::Colors::mui::blue[400])
Macros that expand into a CRTP unit/measure struct and a runtime auto-registration for it.
#define DIMVAL_DEFINE_MEASURE(Tag, BaseUnit, Id, Name, Icon, Color,...)
Define a measure struct in ::dimval and auto-register its descriptor.
Definition define.hpp:102
Dimensionless units.
Practical / accepted units that mostly carry their own kind: clock drift, rotational frequency,...
RF / SDR units — logarithmic ratios (dB family + Neper), phase angle alternates, spectral density uni...
Canonical SI units (base + derived) and accepted/practical alts.