I am having some problems coding and programming my device

I am new to programming and confused with the different error messages. I am trying to build a gesture controlled car, so I have two different parts the transceiver and receiver and I just needed help programming those.

This is the website I have been using and where I got the code off of to use. When I put the code in arduino editor to program it error messages come up.

If anyone could give me some guidance it would be much appreciated, Thank you.

commented out "I2Cdev.h" in the transmitter code and it compiles alright for me.

did you install that library before trying to compile it?

TRANSMITTER (compiles not tested!)

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include "Wire.h"
//#include "I2Cdev.h"
#include "MPU6050.h"

//Define variables for Gyroscope and Accelerometer data

MPU6050 mpu;
int16_t ax, ay, az;
int16_t gx, gy, gz;

const uint64_t pipeOut = 0xE8E8F0F0E1LL;

RF24 radio(9, 10); //  CN and CSN  pins of nrf

struct MyData {
  byte X;
  byte Y;
};

MyData data;

void setup()
{
  Serial.begin(9600);
  Wire.begin();
  mpu.initialize();

  radio.begin();
  radio.setAutoAck(false);
  radio.setDataRate(RF24_250KBPS);
  radio.openWritingPipe(pipeOut);
}

void loop()
{
  mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);

  data.X = map(ax, -17000, 17000, 0, 255 ); //Send X axis data
  data.Y = map(ay, -17000, 17000, 0, 255);  //Send Y axis data

  delay(50);
  radio.write(&data, sizeof(MyData));

  Serial.print("Axis X = ");
  Serial.print(data.X);
  Serial.print("  ");
  Serial.print("Axis X = ");
  Serial.println(data.X);
}

RECEIVER(compiles not tested!)

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
const uint64_t pipeIn = 0xE8E8F0F0E1LL;

RF24 radio(9, 10);

// Left & Right motor pins
const int IN1 = 2;
const int IN2 = 3;
const int IN3 = 4;
const int IN4 = 5;

struct MyData {
  byte X;
  byte Y;
};

MyData data;

void setup()
{
  Serial.begin(9600);
  radio.begin();
  radio.setAutoAck(false);
  radio.setDataRate(RF24_250KBPS);
  radio.openReadingPipe(1, pipeIn);
  radio.startListening();

}

void recvData()
{
  if ( radio.available() ) {
    radio.read(&data, sizeof(MyData));


    if (data.Y < 80) { //Reverse
      digitalWrite(IN1, HIGH);
      digitalWrite(IN2, LOW);
      digitalWrite(IN3, LOW);
      digitalWrite(IN4, HIGH);

    }

    if (data.Y > 145) {//forward
      digitalWrite(IN1, LOW);
      digitalWrite(IN2, HIGH);
      digitalWrite(IN3, HIGH);
      digitalWrite(IN4, LOW);
    }

    if (data.X > 155) {//right turn
      digitalWrite(IN1, LOW);
      digitalWrite(IN2, HIGH);
      digitalWrite(IN3, LOW);
      digitalWrite(IN4, HIGH);
    }

    if (data.X < 80) {//left turn
      digitalWrite(IN1, HIGH);
      digitalWrite(IN2, LOW);
      digitalWrite(IN3, HIGH);
      digitalWrite(IN4, LOW);
    }

    if (data.X > 100 && data.X < 170 && data.Y > 80 && data.Y < 130) { //stop car
      digitalWrite(IN1, LOW);
      digitalWrite(IN2, LOW);
      digitalWrite(IN3, LOW);
      digitalWrite(IN4, LOW);
    }
  }
}

void loop()
{
  recvData();
  Serial.print("X: ");
  Serial.print(data.X);
  Serial.print("    ");
  Serial.print("Y: ");
  Serial.print(data.Y);
  Serial.print("\n");
}

What libraries do I need to install?

Tmatta42:
What libraries do I need to install?

Really....

nRF24L01.h
RF24.h
I2Cdev.h
MPU6050.h

those usually do not come by default with the IDE, or you have ALL of them installed?

That works now thank you