智能车制作

标题: 飞思卡尔智能车 [打印本页]

作者: glf19911009    时间: 2012-1-18 21:21
标题: 飞思卡尔智能车
电磁组 官方给的资料中的程序有几条语句有“>>”和“<<”么作用啊 ??
例如: nLeftVal = nLeftVal << 4;
nD = g_nCarGyroVal >> 5;
g_nLeftMotorOut = nLeft << 6;
g_nMotorOutSpeedKeep >> 3;
等等.......
求解啊
作者: chenyu201055022    时间: 2012-1-19 11:38

作者: ersteLicht    时间: 2012-1-19 16:12
移位,左移<<或右移>> N位可以用于于乘以或除以2^N,LZ要补习一下C语言哦~




欢迎光临 智能车制作 (http://111.231.132.190/) Powered by Discuz! X3.2