int MotorRight1=14; int MotorRight2=15; int MotorLeft1=16; int MotorLeft2=17; int MotorRPWM=3; int MotorLPWM=5; const int SensorLeft = 2; //左感测器輸入腳 //const int SensorMiddle= 4 ; //中感测器輸入腳 const int SensorRight = 6; //右感测器輸入腳 int SL; //左感测器狀態 //int SM