|
楼主 |
发表于 2011-10-21 19:50:08
|
显示全部楼层
回复【6楼】520zhoupian
回复【4楼】millwood0
a(t) = alpha * a(t) + (1-alpha) * a(t-1);
where 0 < alpha < 1, a(t) is the measurement of acceleration at time of t, and a(t) is the smoothed measurement of acceleration at time of t.
it is called 'exponential smoothing'.
-----------------------------------------------------------------------
这种方法似乎可以考虑一下,我先试一下,看看效果会不会好一些
-----------------------------------------------------------------------
实在是太激动了…………
这种方法刚试过了,现在小车甚至可以平衡10秒左右了,真的太感谢了,这种方法简单却非常实用。
不过为了让小车更平衡一些,我还会在安装上做一些改进。 |
|