  * @author:    Tyler Lucas
  * Student ID: 3305203
  * Date:       October 9, 2017
- * Version     1.0
+ * Version     1.1
  * 
  * References: N/A
  * 


  angleAdjustment *= -1;    // reverse direction
}

double analogReadAverage(int pin, unsigned int points)
{
  double sum = 0;
  for (unsigned int i=0; i<points; i++)
    sum += analogRead(pin);
  return sum / points;
}



#include <Servo.h>  // servo library

#define boomArmPin 11   // max 110, min ?
#define mainArmPin 10   // max ?, min ?
#define clawPin 9       // max 140, min 69
#define swivelPin 6     // max 180, min 10

#define boomArmSensorPin A0
#define mainArmSensorPin A1
#define clawSensorPin A2
#define swivelSensorPin A3

#define angleMin 69
#define angleMax 140
#define angleInitial 90
#define angleAdjustmentMagnitude 1

Servo servo;
int angle = angleMin;
int angleAdjustment = angleAdjustmentMagnitude;

void setup()
{
  servo.attach( clawPin );
  
  Serial.begin(9600);

