signalCondition

Functions

void lowPassFilterSignal(double newMeas, LowPassFilterData *lpData)

This method applies the low-pass filter configuration to the newMeas that is passed in. The state is maintained in the LowPassFilterData structure

Parameters:
  • lpData – The configuration data and history of the LP filter

  • newMeas – The new measurement to take in to the filter

Returns:

void

struct LowPassFilterData
#include <signalCondition.h>

struct definition

Public Members

double hStep

[s] filter time step (assumed to be fixed)

double omegCutoff

[rad/s] Cutoff frequency for the filter

double currentState

[-] Current state of the filter

double currentMeas

[-] Current measurement that we read