public ButterworthFusedYoVariable(String name, YoVariableRegistry yoVariableRegistry, double alpha, DoubleYoVariable slowSignal, DoubleYoVariable fastSignal) { super(name, yoVariableRegistry); lowPassFilteredSlowVariable = new ButterworthFilteredYoVariable(name + "lowPass", yoVariableRegistry, alpha, slowSignal, ButterworthFilterType.LOW_PASS); highPassFilteredFastVariable = new ButterworthFilteredYoVariable(name + "highPass", yoVariableRegistry, alpha, fastSignal, ButterworthFilterType.HIGH_PASS); reset(); }
public void update(double slowSignalVal, double fastSignalVal) { lowPassFilteredSlowVariable.update(slowSignalVal); highPassFilteredFastVariable.update(fastSignalVal); set(lowPassFilteredSlowVariable.getDoubleValue() + highPassFilteredFastVariable.getDoubleValue()); } }
public void update() { lowPassFilteredSlowVariable.update(); highPassFilteredFastVariable.update(); set(lowPassFilteredSlowVariable.getDoubleValue() + highPassFilteredFastVariable.getDoubleValue()); }
public void update(double slowSignalVal, double fastSignalVal) { lowPassFilteredSlowVariable.update(slowSignalVal); highPassFilteredFastVariable.update(fastSignalVal); set(lowPassFilteredSlowVariable.getDoubleValue() + highPassFilteredFastVariable.getDoubleValue()); } }
public ButterworthFusedYoVariable(String name, YoVariableRegistry yoVariableRegistry, double alpha, YoDouble slowSignal, YoDouble fastSignal) { super(name, yoVariableRegistry); lowPassFilteredSlowVariable = new ButterworthFilteredYoVariable(name + "lowPass", yoVariableRegistry, alpha, slowSignal, ButterworthFilterType.LOW_PASS); highPassFilteredFastVariable = new ButterworthFilteredYoVariable(name + "highPass", yoVariableRegistry, alpha, fastSignal, ButterworthFilterType.HIGH_PASS); reset(); }
public void update() { lowPassFilteredSlowVariable.update(); highPassFilteredFastVariable.update(); set(lowPassFilteredSlowVariable.getDoubleValue() + highPassFilteredFastVariable.getDoubleValue()); }