滤波[1]
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
微信搜索“Kconfig”,获取支持...