Help

Hey im new to arduino and i was wondering if someone could check this code.

#include <Servo.h>


//Drive pins
const int motor1Forward = 3;
const int motor1Backward = 4;
const int enablePin1 = 7;
//Steering pins
const int motor2Forward = 5;
const int motor2Backward = 6;
const int enablePin2 = 8;
//Serial information varriables
char inSerial;
//Pan Variables
Servo panServo;           //Panning servo
const int panPin = 10;   
bool bPan;                // If true enables the ability for the servo to pan
bool bPanDirPos;          //If true servo should pan only in the positive direction
float panSpeed = .01;     //Degrees in which servo pans per tic
float panVal = 60;        //Panning servo starting position

//Tilt Variables
Servo tiltServo;           //Tilting servo
const int tiltPin = 9;   
bool bTilt;                // If true enables the ability for the servo to tilt
bool bTiltDirPos;          //If true servo should tilt only in the positive direction
float tiltSpeed = .01;     //Degrees in which servo tilts per tic
float tiltVal = 60;        //Tilting servo starting position

void setup() 
{
  Serial.begin(115200);      //serial connection number
  pinMode(motor1Forward, OUTPUT);
  pinMode(motor1Backward, OUTPUT);
  pinMode(enablePin1, OUTPUT);
  pinMode(motor2Forward, OUTPUT);
  pinMode(motor2Backward, OUTPUT);
  pinMode(enablePin2, OUTPUT);
  digitalWrite(enablePin2, HIGH);
  Serial.println("Setup Complete");
  //Initalize Servos to starting positions
  //Pan Servos
  panServo.attach(panPin);
  panServo.write(panVal);
  bPan = false;
  bPanDirPos = true;
  
  //Initalize Tilt Servos
  tiltServo.attach(tiltPin);
  tiltServo.write(tiltVal);
  bTilt = false;
  bTiltDirPos = true;

}

void SteerLeft()
{
  digitalWrite(enablePin2, HIGH);
  digitalWrite(motor2Forward, HIGH);
  digitalWrite(motor2Backward, LOW);
  digitalWrite(enablePin1, HIGH);
  digitalWrite(motor1Forward, LOW);
  digitalWrite(motor1Backward, HIGH);
}

void SteerRight()
{
  digitalWrite(enablePin2, HIGH);
  digitalWrite(motor2Forward, LOW);
  digitalWrite(motor2Backward, HIGH);
  digitalWrite(enablePin1, HIGH);
  digitalWrite(motor1Forward, HIGH);
  digitalWrite(motor1Backward, LOW);
}

void SteerStop()
{
  digitalWrite(enablePin2, LOW);
  digitalWrite(motor2Forward,LOW);
  digitalWrite(motor2Backward,LOW);
  digitalWrite(enablePin1, LOW);
  digitalWrite(motor1Forward, LOW);
  digitalWrite(motor1Backward, LOW);
}

void DriveForward()
{
  digitalWrite(enablePin1, HIGH);
  digitalWrite(motor1Forward, HIGH);
  digitalWrite(motor1Backward, LOW);
  digitalWrite(enablePin2, HIGH);
  digitalWrite(motor2Forward,HIGH);
  digitalWrite(motor2Backward,LOW);
}
void DriveBackward()
{
  digitalWrite(enablePin1, HIGH);
  digitalWrite(motor1Forward, LOW);
  digitalWrite(motor1Backward, HIGH);
  digitalWrite(enablePin2, HIGH);
  digitalWrite(motor2Forward,LOW);
  digitalWrite(motor2Backward,HIGH);
}
void DriveStop()
{
  digitalWrite(motor1Forward, LOW);
  digitalWrite(motor1Backward, LOW);
  digitalWrite(enablePin1, LOW);
  digitalWrite(motor2Forward,LOW);
  digitalWrite(motor2Backward,LOW);
  digitalWrite(enablePin2, LOW);
}
void PanUp()
{
  bPan = true;
  bPanDirPos = true;
}

void PanDown()
{
  bPan = true;
  bPanDirPos = false;
}

void PanStop()
{
  bPan = false;
}

void TiltUp()
{
  bTilt = true;
  bTiltDirPos = true;
}

void TiltDown()
{
  bTilt = true;
  bTiltDirPos = false;
}

void TiltStop()
{
  bTilt = false;
}

  

void loop() 
{
   //read the serial data into the buffer
  if(Serial.available() > 0)
  {
    inSerial = Serial.read();
   
     if(inSerial == 'w')
      {
          DriveForward();   
      }
      else if(inSerial == 'b')
      {
          DriveBackward();
      } 
      else if(inSerial == 's')
      {
          DriveStop();
      }
      else if(inSerial == 'a')
      {
        SteerLeft();
      }
      else if(inSerial == 'd')
      {
         SteerRight();
      }
      else if(inSerial == 'q')
      {
         SteerStop();
      }
      else if(inSerial == 'p')
      {
        PanUp();
      }
      else if(inSerial == 'o')
      {
        PanDown();
      }
      else if(inSerial == 'n')
      {
        PanStop();
      }
      else if(inSerial == 't')
      {
        TiltUp();
      }
      else if(inSerial == 'g')
      {
        TiltDown();
      }
      else if(inSerial == 'x')
      {
        TiltStop();
      } 
     }
       
//Controll panning
if(bPan)
{
	if(bPanDirPos)
	{
		if(panVal<180)
		{
			panVal+=panSpeed;
			panServo.write(panVal);
		}
	}
	else
	{
		if(panVal>0)
		{
			panVal-=panSpeed;
			panServo.write(panVal);
		}
	}
}

//Controll Tilting
if(bTilt)
{
	if(bTiltDirPos)
	{
		if(tiltVal<180)
		{
			tiltVal +=tiltSpeed;
			tiltServo.write(tiltVal);
	}	}
	else
	{
		if(tiltVal>0)
		{
			tiltVal-=tiltSpeed;
			tiltServo.write(tiltVal);
		}
	}
}
}

What does the compiler say?

It said that it is good but i cant get it to work with my project that i am building. Also that project that i am working on is like an rc car. But the arduino board controls a sn754410 motor drive ic, which controls two 3v motors. The arduino board also controls a set of servos that are mounted on the front.

i cant get it to work

What does/doesn't it do?

Debug prints would be useful