#include <AnalogAxisProcessing.h>
|
| AnalogAxisProcessing (const uint32_t axisAmount, AnalogSource *analogSource, CommandHandler *cmdHandler=nullptr, bool allowFilters=true, bool allowAutoscale=true, bool allowRawValues=false, bool allowManualScale=false) |
|
virtual | ~AnalogAxisProcessing () |
|
CommandStatus | command (const ParsedCommand &cmd, std::vector< CommandReply > &replies) |
|
void | setupFilters () |
|
void | processAxes (std::vector< int32_t > &buf) |
|
AnalogProcessingConfig & | getAnalogProcessingConfig () |
|
void | setAnalogProcessingConfig (AnalogProcessingConfig conf) |
|
template<size_t size> |
void | restoreMinMaxValues (const std::array< std::pair< uint16_t, uint16_t >, size > &minMaxAddresses) |
|
template<size_t size> |
void | saveMinMaxValues (const std::array< std::pair< uint16_t, uint16_t >, size > &minMaxAddresses) |
|
Definition at line 29 of file AnalogAxisProcessing.h.
◆ AnalogAxisProcessing_commands
◆ AnalogAxisProcessing()
AnalogAxisProcessing::AnalogAxisProcessing |
( |
const uint32_t |
axisAmount, |
|
|
AnalogSource * |
analogSource, |
|
|
CommandHandler * |
cmdHandler = nullptr , |
|
|
bool |
allowFilters = true , |
|
|
bool |
allowAutoscale = true , |
|
|
bool |
allowRawValues = false , |
|
|
bool |
allowManualScale = false |
|
) |
| |
Constructs an analog axis processing class
- Parameters
-
[in] | axisAmount | maximum amount of axes to be processed |
[in] | cmdHandler | command handler to register commands to. nullptr to disable commands |
[in] | allowFilters | enable the use of filters. Creates filters and activates filter command |
[in] | allowAutoscale | enable autoscaling command |
[in] | allowRawvalues | enable raw value command. Required if manual scale should be used with the GUI |
[in] | allowManualScale | activates min/max commands if set |
Definition at line 20 of file AnalogAxisProcessing.cpp.
◆ ~AnalogAxisProcessing()
AnalogAxisProcessing::~AnalogAxisProcessing |
( |
| ) |
|
|
virtual |
◆ command()
◆ decodeAnalogProcessingConfFromInt()
◆ encodeAnalogProcessingConfToInt()
◆ getAnalogProcessingConfig()
◆ processAxes()
void AnalogAxisProcessing::processAxes |
( |
std::vector< int32_t > & |
buf | ) |
|
◆ restoreMinMaxValues()
template<size_t size>
void AnalogAxisProcessing::restoreMinMaxValues |
( |
const std::array< std::pair< uint16_t, uint16_t >, size > & |
minMaxAddresses | ) |
|
|
inline |
Loads min and max values
- Parameters
-
[in] | minMaxAddresses | addresses to store manual min/max values in (pair of min,max addresses). |
Definition at line 56 of file AnalogAxisProcessing.h.
◆ saveMinMaxValues()
template<size_t size>
void AnalogAxisProcessing::saveMinMaxValues |
( |
const std::array< std::pair< uint16_t, uint16_t >, size > & |
minMaxAddresses | ) |
|
|
inline |
Saves min and max values
- Parameters
-
[in] | minMaxAddresses | addresses to store manual min/max values in (pair of min,max addresses). |
Definition at line 73 of file AnalogAxisProcessing.h.
◆ setAnalogProcessingConfig()
◆ setupFilters()
void AnalogAxisProcessing::setupFilters |
( |
| ) |
|
◆ analogSource
◆ autorangeScale
float AnalogAxisProcessing::autorangeScale = 1.05 |
|
protected |
◆ axisAmount
const uint32_t AnalogAxisProcessing::axisAmount |
|
protected |
◆ conf
◆ filterF
const float AnalogAxisProcessing::filterF = 30.0/1000.0 |
|
protected |
◆ filterQ
const float AnalogAxisProcessing::filterQ = 0.5 |
|
protected |
◆ filters
std::vector<Biquad> AnalogAxisProcessing::filters |
|
protected |
◆ filterSamples
uint32_t AnalogAxisProcessing::filterSamples = 0 |
|
protected |
◆ minMaxVals
std::vector<MinMaxPair> AnalogAxisProcessing::minMaxVals |
|
protected |
◆ modes
◆ rawValues
std::vector<int32_t> AnalogAxisProcessing::rawValues |
|
protected |
◆ waitFilterSamples
const uint32_t AnalogAxisProcessing::waitFilterSamples = 500 |
|
protected |
The documentation for this class was generated from the following files: