   servo.write(currentServoAngle);
 }
 
-void handleSerial(char val) {
+void handleSerial(char command) {
   int leftspeed = 255;   // 255 is maximum speed
   int rightspeed = 240;  // Adjust for skew 
-  switch(val) // Perform an action depending on the command
+  switch(command) // Perform an action depending on the command
   {
     case 'w'://Move Forward
     case 'W':


void setup(void)
{
  int i;
  for(i=5;i<=8;i++)
  pinMode(i, OUTPUT);
  
  servo.attach(SERVO_PIN);
  servo.write(currentServoAngle);

#include <Servo.h>

// Motors
#define E1 6 // M1 Speed Control
#define E2 5 // M2 Speed Control
#define M1 8 // M1 Direction Control
#define M2 7 // M2 Direction Control

// Servo
#define MIN_ANGLE 100
#define MAX_ANGLE 180
#define SERVO_PIN 13
