Commit 42eacc6c authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

add a temporary check for the value range of the DoA angles in the estimator for debugging

parent 63941ae6
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1053,6 +1053,10 @@ void calculate_hodirac_sector_parameters(
                *p_azi_prev = *p_azi;
                *p_ele_prev = *p_ele;
            }
#ifdef HODIRAC_CHECK_VALUE_RANGE
            assert( *p_azi > -180.f && *p_azi <= 180.f );
            assert( *p_ele > -90.f && *p_ele <= 90.f );
#endif
        } // i_band
    }     // i_sec

+4 −0
Original line number Diff line number Diff line
@@ -150,7 +150,11 @@

#define HODIRAC                                         /* FhG: Sector-based HO-DirAC method for SBA at high bitrates */
#define HODIRAC_CRASH_FIX

#define HODIRAC_DEBUG

#ifdef HODIRAC_DEBUG
#define HODIRAC_CHECK_VALUE_RANGE
//#define HODIRAC_WRITE_PARAMS
///#define HODIRAC_READ_PARAMS
#endif