From 21a23aeff958a1d37f6f44797382f18cbe2a448e Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 12 Jan 2026 11:41:23 +0100 Subject: Fix 0/7 insertion; Add classic-rate-tuning FIC scheduler --- src/fig/FIG.cpp | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'src/fig/FIG.cpp') 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 -- cgit v1.2.3