Controlpp
Loading...
Searching...
No Matches
conversion.hpp File Reference
#include <numbers>
#include <cmath>
#include <Eigen/Dense>

Go to the source code of this file.

Namespaces

namespace  controlpp
 The main namespace for the Control++ library.
 

Functions

template<class T >
controlpp::to_hz (const T &radps)
 Converts a number from radiants per second to herz.
 
template<class T , int N>
Eigen::Vector< T, N > controlpp::to_hz (const Eigen::Vector< T, N > &radps)
 
template<class T >
controlpp::to_radps (const T &hz)
 Converts a number from herz to radiants per second.
 
template<class T , int N>
Eigen::Vector< T, N > controlpp::to_radps (const Eigen::Vector< T, N > &hz)
 
template<class T >
controlpp::to_deg (const T &rad)
 
template<class T , int N>
Eigen::Vector< T, N > controlpp::to_deg (const Eigen::Vector< T, N > &rad)
 
template<class T >
controlpp::to_rad (const T &deg)
 
template<class T , int N>
Eigen::Vector< T, N > controlpp::to_rad (const Eigen::Vector< T, N > &deg)
 
template<class T >
controlpp::to_dB (const T &value)
 
template<class T >
controlpp::from_dB (const T &value)
 
template<class T >
controlpp::prewarp_tustin (const T &omega, const T &Ts)
 Prewarps frequencies for the tustin transformation.
 
template<class T , int N>
Eigen::Vector< T, N > controlpp::prewarp_tustin (const Eigen::Vector< T, N > &omegas, const T &Ts)
 
template<class T >
controlpp::unwarp_tustin (const T &omega, const T &Ts)
 provides the inverse to prewarp_tustin:
 
template<class T , int N>
Eigen::Vector< T, N > controlpp::unwarp_tustin (const Eigen::Vector< T, N > &omegas, const T &Ts)