Monado OpenXR Runtime
m_lowpass_float.cpp File Reference

Wrap float filters for C. More...

#include "m_lowpass_float.h"
#include "m_lowpass_float.hpp"
#include "util/u_logging.h"
#include <memory>
Include dependency graph for m_lowpass_float.cpp:

Data Structures

struct  m_lowpass_float
 

Macros

#define DEFAULT_CATCH(...)
 

Functions

struct m_lowpass_floatm_lowpass_float_create (float cutoff_hz)
 
void m_lowpass_float_add_sample (struct m_lowpass_float *mlf, float sample, timepoint_ns timestamp_ns)
 
float m_lowpass_float_get_state (const struct m_lowpass_float *mlf)
 
timepoint_ns m_lowpass_float_get_timestamp_ns (const struct m_lowpass_float *mlf)
 
bool m_lowpass_float_is_initialized (const struct m_lowpass_float *mlf)
 
void m_lowpass_float_destroy (struct m_lowpass_float **ptr_to_mlf)
 

Detailed Description

Wrap float filters for C.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com

Macro Definition Documentation

◆ DEFAULT_CATCH

#define DEFAULT_CATCH (   ...)
Value:
catch (std::exception const &e) \
{ \
U_LOG_E("Caught exception: %s", e.what()); \
return __VA_ARGS__; \
} \
catch (...) \
{ \
U_LOG_E("Caught exception"); \
return __VA_ARGS__; \
}