Filter = Filter*(1-Tcon/Tfilter)+ newData*(Tcon/Tfilter)
其中Tcon和Tfilter单位需要一致,比如单位S
psRes->fWrestProtectfliter = psRes->fWrestProtectfliter*(1.0f-1.0f/(0.01f/fTsw)) + psRes->fWrest*(1.0f/(0.01f/fTsw)); //0.01s
标签:1.0,psRes,0.01,滤波,Filter,Tcon,Tfilter From: https://www.cnblogs.com/DawaTech/p/17390954.html