智能车制作
标题:
DG128 飞控程序 有啥想法,齐齐贴上来
[打印本页]
作者:
洗牌
时间:
2013-4-25 20:56
标题:
DG128 飞控程序 有啥想法,齐齐贴上来
{:soso_e116:}{:soso_e116:}{:soso_e116:}{:soso_e116:}{:soso_e116:}{:soso_e116:}
作者:
洗牌
时间:
2013-4-26 15:00
我先抛砖引玉吧,
power = throttle;
powerX = power * balanceXY;
powerY = power * 2 - powerX;
motorPowers[0] = (int) (powerX * balanceX);
motorPowers[1] = (int) (powerX * 2) - motorPowers[0];
motorPowers[2] = (int) (powerY * balanceY);
motorPowers[3] = (int) (powerY * 2) - motorPowers[2];
欢迎光临 智能车制作 (http://dns.znczz.com/)
Powered by Discuz! X3.2