 
 //Variables needed
 char receivedControls[6] = "aaaa;";
-char nadave[6] = "CUCU;";
+int j1x,j1y,j2x,j2y;
 
+Servo myservo;
 
 void setup(void)
 {

#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"

      
      Serial.print("Posicoes: ");
      Serial.print(receivedControls);
      j1y=hextodecimal(receivedControls[1]);
      Serial.print("Valor: ");
      Serial.print(j1y);
      j1y=map(j1y,0,15,0,180);
      j1y=180-j1y;
      myservo.write(j1y);
      Serial.print("Servo: ");
      Serial.print(j1y);
      // First, stop listening so we can talk
      radio.stopListening();

      
      // Send the final one back.
      Serial.println(" ... Enviando resposta.");
      radio.write( &receivedControls, sizeof(receivedControls) );
      
      // Now, resume listening so we catch the next packets.
      radio.startListening();
