程序不懂啊不懂 求助啊求助

[复制链接]
1693|2
 楼主| dulala 发表于 2013-4-10 16:54 | 显示全部楼层 |阅读模式
AD, tv, TE, dc, AN
        //****Sample motor speed command
                //nVelocityReading=*((Uint16 *)&AdcMirror+ADCsequencerA+ADC_velCmd);
                //Lowpass filer of y(n)=(k-1)/K*y(n-1)+x(n) --> y(n)=k*x(n) at steady state
                lVelocity = (lVelocity*(nVelocityFltVal1-1))/nVelocityFltVal1 + nVelocityReading;

                nVelocityCMD = lVelocity/nVelocityFltVal1*(nVelocity_Max-nVelocity_Min)/nVelocity_scal+nVelocity_Min; //Obtained filtered velocity command with offset ???????????

        #if !velCmdsrc   
                nVelocityCMD = nVelocityCAN/2;        //for debugging,also disable the assign line in isr
        #endif


nVelocityCMD = lVelocity/nVelocityFltVal1*(nVelocity_Max-nVelocity_Min)/nVelocity_scal+nVelocity_Min; //Obtained filtered velocity command with offset
这是个什么函数呀
zhangmangui 发表于 2013-4-10 18:56 | 显示全部楼层
这只是一个运算吧  也不是什么函数   
 楼主| dulala 发表于 2013-4-11 08:09 | 显示全部楼层
可是还是不懂 这个运算 能否说明白点呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

10

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部