Controlpp
Loading...
Searching...
No Matches
controlpp::timevar::NotchControl< T > Class Template Reference

A notch element with variable sample-time. More...

#include <controlpp/TimeVariantControl.hpp>

Public Member Functions

constexpr NotchControl (const T &w, const T &g_min, const T &omega)
 Creates a notch filter.
 
constexpr T input (const T &u, const T &Ts)
 
constexpr T operator() (const T &u, const T &Ts)
 
constexpr void reset ()
 

Friends

constexpr ValueSampletimePair< T > operator>> (const ValueSampletimePair< T > &p, NotchControl &c)
 

Detailed Description

template<class T>
class controlpp::timevar::NotchControl< T >

A notch element with variable sample-time.

Has the following continuous transfer function:

\[ N(s) = \frac{\omega^2 + 2 G_\text{min} W s \omega + s^2} {\omega^2 + 2 W s \omega + s^2} \]

where:

  • \(G_\text{min}\) is the value at the notch
  • \(W\) is the width of the notch

Constructor & Destructor Documentation

◆ NotchControl()

template<class T >
constexpr controlpp::timevar::NotchControl< T >::NotchControl ( const T &  w,
const T &  g_min,
const T &  omega 
)
inlineconstexpr

Creates a notch filter.

Parameters
wThe width of the noth.
  • \(w > 0\): Larger value \(\Rightarrow\) wider notch
  • \(w = 0\): Needle
g_minThe gain at the notch peak
omegathe frequency (rad/s) of the notch peak

Member Function Documentation

◆ input()

template<class T >
constexpr T controlpp::timevar::NotchControl< T >::input ( const T &  u,
const T &  Ts 
)
inlineconstexpr

◆ operator()()

template<class T >
constexpr T controlpp::timevar::NotchControl< T >::operator() ( const T &  u,
const T &  Ts 
)
inlineconstexpr

◆ reset()

template<class T >
constexpr void controlpp::timevar::NotchControl< T >::reset ( )
inlineconstexpr

Friends And Related Symbol Documentation

◆ operator>>

template<class T >
constexpr ValueSampletimePair< T > operator>> ( const ValueSampletimePair< T > &  p,
NotchControl< T > &  c 
)
friend

The documentation for this class was generated from the following file: