This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct LowPassFilterSignal { | |
/// Current signal value | |
var value: Double | |
/// A scaling factor in the range 0.0..<1.0 that determines | |
/// how resistant the value is to change | |
let filterFactor: Double | |
/// Update the value, using filterFactor to attenuate changes | |
mutating func update(newValue: Double) { |