 //define Servo variables
 Servo MOTOR[SERVO_NUM];
 
+//define type of SPI request
+uint8_t spireq = 0;
+uint8_t spicount = 0;
+uint8_t spimax_R = 2;
+uint8_t ibyte=0;
+
+union int_byt{
+  uint8_t b[2];
+  uint16_t un;
+} rc_data, esc_data;
+
+
+
 //setup function
 void setup()
 {


void loop()
{
  //nothing to actually do here everithing is done in interrupts
}

/*-----------------------

    SPI settings
  */

  //SPI.setDataMode(SPI_MODE0);

  // Declare MISO as output : have to send on
  //master in, *slave out*
