aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig/FIG.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2026-01-12 11:41:23 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2026-01-12 11:41:23 +0100
commit21a23aeff958a1d37f6f44797382f18cbe2a448e (patch)
treecf3d49519070c8e81e9d8363036c4e7db7591edc /src/fig/FIG.cpp
parent071c13d4df3f3586073faff9fb0b78d930f42a7a (diff)
downloaddabmux-21a23aeff958a1d37f6f44797382f18cbe2a448e.tar.gz
dabmux-21a23aeff958a1d37f6f44797382f18cbe2a448e.tar.bz2
dabmux-21a23aeff958a1d37f6f44797382f18cbe2a448e.zip
Fix 0/7 insertion; Add classic-rate-tuning FIC scheduler
Diffstat (limited to 'src/fig/FIG.cpp')
-rw-r--r--src/fig/FIG.cpp23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/fig/FIG.cpp b/src/fig/FIG.cpp
index 4eed7c8..6282b42 100644
--- a/src/fig/FIG.cpp
+++ b/src/fig/FIG.cpp
@@ -29,26 +29,11 @@
namespace FIC {
-int rate_increment_ms(FIG_rate rate)
+const std::string IFIG::name() const
{
- switch (rate) {
- /* All these values are multiples of 24, so that it is easier to reason
- * about the behaviour when considering ETI frames of 24ms duration
- *
- * In large ensembles it's not always possible to respect the reptition rates, so
- * the values are a bit larger than what the spec says.
- * However, we observed that some receivers wouldn't always show labels (rate B),
- * and that's why we reduced B rate to slightly below 1s.
- * */
- case FIG_rate::FIG0_0: return 96; // Is a special case
- case FIG_rate::A: return 240;
- case FIG_rate::A_B: return 480;
- case FIG_rate::B: return 960;
- case FIG_rate::C: return 24000;
- case FIG_rate::D: return 30000;
- case FIG_rate::E: return 120000;
- }
- throw std::logic_error("Invalid FIG_rate");
+ std::stringstream ss;
+ ss << figtype() << "/" << figextension();
+ return ss.str();
}
} // namespace FIC