![]() |
Mixxx
|
#include <rotary.h>
Public Member Functions | |
Rotary () | |
~Rotary () | |
void | calibrateStart () |
double | calibrateEnd () |
void | setCalibration (double c) |
double | getCalibration () |
double | filter (double dValue) |
double | fillBuffer (double dValue) |
void | calibrate (double dValue) |
void | setFilterLength (int i) |
int | getFilterLength () |
Protected Attributes | |
int | m_iFilterLength |
int | m_iFilterPos |
double * | m_pFilter |
double | m_dCalibration |
double | m_dLastValue |
int | m_iCalibrationCount |
Rotary::Rotary | ( | ) |
Definition at line 23 of file rotary.cpp.
Rotary::~Rotary | ( | ) |
Definition at line 35 of file rotary.cpp.
void Rotary::calibrate | ( | double | dValue | ) |
Collect callibration data
Definition at line 77 of file rotary.cpp.
double Rotary::calibrateEnd | ( | ) |
End calibration measurement
Definition at line 90 of file rotary.cpp.
void Rotary::calibrateStart | ( | ) |
Start calibration measurement
Definition at line 83 of file rotary.cpp.
double Rotary::fillBuffer | ( | double | dValue | ) |
Hard set event value
Definition at line 68 of file rotary.cpp.
double Rotary::filter | ( | double | dValue | ) |
Low pass filtered rotary event
Definition at line 49 of file rotary.cpp.
double Rotary::getCalibration | ( | ) |
Get calibration
Definition at line 104 of file rotary.cpp.
int Rotary::getFilterLength | ( | ) |
Get filter length
Definition at line 119 of file rotary.cpp.
void Rotary::setCalibration | ( | double | c | ) |
Set calibration
Definition at line 99 of file rotary.cpp.
void Rotary::setFilterLength | ( | int | i | ) |
Set filter length
Definition at line 109 of file rotary.cpp.
double Rotary::m_dCalibration [protected] |
double Rotary::m_dLastValue [protected] |
int Rotary::m_iCalibrationCount [protected] |
int Rotary::m_iFilterLength [protected] |
int Rotary::m_iFilterPos [protected] |
double* Rotary::m_pFilter [protected] |