int sensorPin = A0;    // select the input pin for the potentiometer
int ledPin = 13;      // select the pin for the LED
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup() {
  // declare the ledPin as an OUTPUT:
  pinMode(ledPin, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  // read the value from the sensor:
  pulse_length[CHANNEL1] = analogRead(A0);
  sensorValue = map(sensorValue,0,1023,1200,2600);
  pulse_length[CHANNEL2] = analogRead(A1);
  sensorValue = map(sensorValue,0,1023,1200,2600);
  pulse_length[CHANNEL3] = analogRead(A3);
  sensorValue = map(sensorValue,0,1023,1200,2600);
  pulse_length[CHANNEL3] = analogRead(A0);
  sensorValue = map(sensorValue,0,1023,1200,2600);
  
  // turn the ledPin on
    Serial.println(sensorValue);
    delay(50);
}



/**
void configureChannelMapping() {
    mode_mapping[YAW]      = CHANNEL4; // A3
    mode_mapping[PITCH]    = CHANNEL2; // A1
    mode_mapping[ROLL]     = CHANNEL1; // A0
    mode_mapping[THROTTLE] = CHANNEL3; // A2
}
**/