平衡车的程序请高手看出错识
//算出整理过的零点值sensorAdjusted[0] = sensorValue[0] - sensorZero[0];
if(abs(sensorAdjusted[0]) > 70)//如果倾斜到一定程度,就停机
{
OK = false;
sensorAdjusted[0] =sensorAdjusted[0]>0 70:-70;
}
sensorAdjusted[1] = sensorZero[1] - sensorValue[1];/*减去初始零点*/