 uint8_t my_addr[5] = { 0x18,0x2d,0x44,0x54,0xfb }; 
 
 // struct to hold packets
-radiopacket_t recvPacket;
-radiopacket_t sendPacket;
-
-int x_value;
-int y_value;
+radiopacket_t recv_packet;
+radiopacket_t send_packet;
 
 // util function to set the sender addresss
 void setSenderAddress(uint8_t* dest, uint8_t src);


void radio_rxhandler(uint8_t pipe_number)
{
   rxflag = 1;
}

void loop() {
  uint32_t idle_period = Scheduler_Dispatch();
  if( idle_period){
     idle(idle_period); 
  }
}

void setSenderAddress(uint8_t* dest, uint8_t *src,int len){

  // set the amount of rotation
  cmd->arguments[2] = HIGH_BYTE(deg);
  cmd->arguments[3] = LOW_BYTE(deg);
  
//  Serial.println(cmd->arguments[0]);
//  Serial.println(cmd->arguments[1]);
//  Serial.println(cmd->arguments[2]);
//  Serial.println(cmd->arguments[3]);
  txflag = 1;

  // if (check_if_same_packet(&prev_packet,&send_packet)){
  //   save_the_packet(&prev_packet,send_packet);
  //   txflag = 1;
  // }
}