滤波[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

 

posted @ 2023-05-11 14:32  Kconfig  阅读(18)  评论(0编辑  收藏  举报