One Motor not turning

For some reason my main sketch is not turning the right motor. No matter which move function is called it simply will not turn the right motor. It’s not a wiring issue because when I upload the test motor sketch both motors turn just fine. I have tried to disconnect the sensors to make sure its not just a power issue, I have also applied the L293D with its own power supply on the +Vmotor pin( pin 8 ) yet the motor still does not turn. Code is attached. Any ideas?

MainRobotCode.txt (5.35 KB)

testMotor.txt (674 Bytes)

Serial uses pin 1 on a standard Arduino. Get rid of the Serial.begin() statement or use another pin for In1Pin.

Thanks! It was a combination of that and I had declared in4Pin as output twice and never declared in1Pin.