MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / testCompPeakDirectlyExposesCompression

Function testCompPeakDirectlyExposesCompression

tests/meter_model_test.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void testCompPeakDirectlyExposesCompression()
77{
78 MeterModel model;
79 model.defineMeter(slcMeter(10, 0));
80 model.defineMeter(txMeter(28, "COMPPEAK"));
81 model.setActiveTxSlice(0);
82
83 model.updateValues({28}, {rawDb(12.5f)});
84
85 report("COMPPEAK directly exposes radio compression",
86 model.hasCompressionMeterValue() && nearlyEqual(model.compPeak(), 12.5f));
87}
88
89void testCompPeakClampsToGaugeRange()
90{

Callers 1

mainFunction · 0.85

Calls 10

slcMeterFunction · 0.85
txMeterFunction · 0.85
rawDbFunction · 0.85
defineMeterMethod · 0.80
setActiveTxSliceMethod · 0.80
updateValuesMethod · 0.80
compPeakMethod · 0.80
reportFunction · 0.70
nearlyEqualFunction · 0.70

Tested by

no test coverage detected