IDE not playing nice with my 1st Robotic application

Hello guys i need some help as this is my very first code i written and i got errors out of no where that i cant even understand as the IDE is not being specific enough to my understanding ill post my code below for your review

//imu's
#include "Wire.h"
#include "I2Cdev.h"
#include "MPU6050.h"

//motors
#include "Servo.h"

//wireless
#include "nRF24L01.h"
#include "RF24.h"
#include "SPI.h"

***********************************************************************************
const uint64_t LeftArm   = 0xF0F0F0F0D2LL;//mcu address
const uint64_t RightArm  = 0xF0F0F0F0C3LL;//mcu address
const uint64_t LeftLeg   = 0xF0F0F0F0B4LL;//mcu address
const uint64_t RightLeg  = 0xF0F0F0F0A5LL;//mcu address
const uint64_t LeftWrist = 0xF0F0F0F0E6LL;//mcu address
const uint64_t RighWrist = 0xF0F0F0F0F7LL;//mcu address
RF24 radio(9, 10);

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

************************************************************************************
struct MyData{  
//Left Arm IMU ADDRESS WILL BE THE MUX CH 0
Servo AxLshoulder;
Servo AyLarm;
Servo GxLbicep;
Servo GzLelbow;

//Right Arm IMU ADDRESS WILL BE THE MUX CH 1
Servo AxRshoulder;
Servo AyRarm;
Servo GxRbicep;
Servo GzRelbow;

//both Wrist Gyro roll up/dwn roll lft/rgt
Servo GxLwrist; //ch2
Servo GzLwrist; //ch2
Servo GxRwrist; //ch3
Servo GzRwrist; //ch3

/* Left Hand
Stepper GxThumbj1; 
Stepper GzThumbj2;
Stepper GxIndexj1;
Stepper GzIndexj2;
Stepper Gxvectorj1;
Stepper GzVectorj2;

Right Hand
Stepper GxThumbj1; 
Stepper GzThumbj2;
Stepper GxIndexj1;
Stepper GzIndexj2;
Stepper Gxvectorj1;
Stepper GzVectorj2;

Left Leg IMU ADDRESS WILL BE THE MUX CH4
Right Leg IMU ADDRESS WILL BE THE MUX CH5
*/

//both Ankles Gyro roll up/dwn roll lft/rgt
Servo GxLAnkle; //ch6
Servo GzLAnkle; //ch6
Servo GxRAnkle; //ch7
Servo GzRAnkle; //ch7
};
************************************************************************************
int AxLshoulder.attach(4);
int AyLarm.attach(3);
int GxLbicep.attach(2);
int GzLelbow.attach(1);

************************************************************************************
MyData data;

long val;
long prevVal;

************************************************************************************
void setup()
{
  Wire.begin();
  mpu.initialize();
  
  radio.begin();
  radio.setAutoAck(false);
  radio.setDataRate(RF24_250KBPS);
  radio.openWritingPipe(LeftArm);
}

************************************************************************************
void loop()
{
    mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
    val = map(ax, -17000, 17000, 0, 180);
    val = map(az, -17000, 17000, 0, 180);
    val = map(gz, -17000, 17000, 0, 180);
    val = map(gy, -17000, 17000, 0, 180);
    val = map(gx, -17000, 17000, 0, 180);
    val = map(ay, -17000, 17000, 0, 180);

  if (val != prevVal)
  {
    radio.write(&data, val, sizeof(MyData));
    prevVal = val;
  }
   delay(50);
}

Well this is the Compiling errors i got

Arduino: 1.6.1 (Windows 8.1), Board: "Arduino Nano, ATmega328"


TESTING_IMU_nRF_Servo_Tx.ino:36:1: error: expected unqualified-id before 'void'

TESTING_IMU_nRF_Servo_Tx.ino:36:1: error: expected constructor, destructor, or type conversion before 'void'

TESTING_IMU_nRF_Servo_Tx.ino:38:1: error: expected unqualified-id before 'void'

TESTING_IMU_nRF_Servo_Tx.ino:38:1: error: expected constructor, destructor, or type conversion before 'void'

TESTING_IMU_nRF_Servo_Tx.ino:35:16: error: expected constructor, destructor, or type conversion before 'LeftArm'

TESTING_IMU_nRF_Servo_Tx.ino:44:9: error: expected constructor, destructor, or type conversion before 'mpu'

TESTING_IMU_nRF_Servo_Tx.ino:49:1: error: expected unqualified-id before 'struct'

TESTING_IMU_nRF_Servo_Tx.ino:49:1: error: expected constructor, destructor, or type conversion before 'struct'

TESTING_IMU_nRF_Servo_Tx.ino:95:1: error: expected unqualified-id before 'int'

TESTING_IMU_nRF_Servo_Tx.ino:95:1: error: expected constructor, destructor, or type conversion before 'int'

TESTING_IMU_nRF_Servo_Tx.ino:96:11: error: expected initializer before '.' token

TESTING_IMU_nRF_Servo_Tx.ino:97:13: error: expected initializer before '.' token

TESTING_IMU_nRF_Servo_Tx.ino:98:13: error: expected initializer before '.' token

TESTING_IMU_nRF_Servo_Tx.ino:101:8: error: expected constructor, destructor, or type conversion before 'data'

TESTING_IMU_nRF_Servo_Tx.ino:107:1: error: expected unqualified-id before 'void'

TESTING_IMU_nRF_Servo_Tx.ino:107:1: error: expected constructor, destructor, or type conversion before 'void'

TESTING_IMU_nRF_Servo_Tx.ino:119:1: error: expected unqualified-id before 'void'

TESTING_IMU_nRF_Servo_Tx.ino:119:1: error: expected constructor, destructor, or type conversion before 'void'

Error compiling.
struct MyData
{  
//Left Arm IMU ADDRESS WILL BE THE MUX CH 0
Servo AxLshoulder;
Servo AyLarm;
Servo GxLbicep;
Servo GzLelbow;

looks like you are missing a } and ; at end of struct

that is a start. Which 6050 library are you using?

Hi, I don't think the IDE likes


try //***********************************************************

What arduino board is it for?

Tom.... :)

looks like you are missing a } and ; at end of struct

It's there, if you make it past all the useless commented out code.

***********************************************************************************

WTF?

const uint64_t RighWrist = 0xF0F0F0F0F7LL;//mcu address

Is that spelled righ?

    val = map(ax, -17000, 17000, 0, 180);
    val = map(az, -17000, 17000, 0, 180);
    val = map(gz, -17000, 17000, 0, 180);
    val = map(gy, -17000, 17000, 0, 180);
    val = map(gx, -17000, 17000, 0, 180);
    val = map(ay, -17000, 17000, 0, 180);

Since the result is always stored in the same variable, the first 5 calls are useless.