IMU Sample Code Compiler Errors

I have a 10 dof sensor stick http://www.dfrobot.com/index.php?route=product/product&product_id=818#.Up5xQMRDt8E that I’m trying to find some sample code for so I have some examples to develop my own code. However all the sample code I’ve found has compiled with errors. I’m assuming these are from IDE updates. Any help with fixing the errors?

I realize that the sample code may have one or two sensors that are different from my sensor stick, I just need help with identifying the updates the code needs

code obtained from http://www.geeetech.com/.

//The 10 Dof sample sketch for reading the BMP085 and IMUs raw data

#include <Wire.h>
#include <FreeSixIMU.h>
#include <FIMU_ADXL345.h>
#include <FIMU_ITG3200.h>
#include <HMC5883L.h>
#include <BMP085.h>

float angles[3]; // yaw pitch roll
float heading;
BMP085 dps = BMP085();
long Temperature = 0, Pressure = 0, Altitude = 0;

// Set the FreeSixIMU object
FreeSixIMU sixDOF = FreeSixIMU();

HMC5883L compass;
// Record any errors that may occur in the compass.
int error = 0;

void setup(){

  Serial.begin(9600);
  Wire.begin();
  delay(1000);
  dps.init();
  dps.dumpCalData();
  delay(5000);
  
  delay(5);
  sixDOF.init(); //init the Acc and Gyro
  delay(5);
  compass = HMC5883L(); // init HMC5883
  
  error = compass.SetScale(1.3); // Set the scale of the compass.
  error = compass.SetMeasurementMode(Measurement_Continuous); // Set the measurement mode to Continuous  
  if(error != 0) // If there is an error, print it out.
    Serial.println(compass.GetErrorText(error));

}

void loop(){
  dps.getTemperature(&Temperature);
  dps.getPressure(&Pressure);
  dps.getAltitude(&Altitude);
  
  sixDOF.getEuler(angles);

  getHeading();
  PrintData();
  
  delay(300);
}

void getHeading(){
  // Retrive the raw values from the compass (not scaled).
  MagnetometerRaw raw = compass.ReadRawAxis();
  // Retrived the scaled values from the compass (scaled to the configured scale).
  MagnetometerScaled scaled = compass.ReadScaledAxis();
  
  // Values are accessed like so:
  int MilliGauss_OnThe_XAxis = scaled.XAxis;// (or YAxis, or ZAxis)

  // Calculate heading when the magnetometer is level, then correct for signs of axis.
  heading = atan2(scaled.YAxis, scaled.XAxis);  
  
  float declinationAngle = 0.0457;
  heading += declinationAngle;
  
  // Correct for when signs are reversed.
  if(heading < 0)
    heading += 2*PI;
    
  // Check for wrap due to addition of declination.
  if(heading > 2*PI)
    heading -= 2*PI;
   
  // Convert radians to degrees for readability.
  heading = heading * 180/M_PI; 
}

void PrintData(){
  
  Serial.print("Eular Angle: ");
  Serial.print(angles[0]);
  Serial.print("  ");  
  Serial.print(angles[1]);
  Serial.print("  ");
  Serial.print(angles[2]);
  Serial.print("  ");
  Serial.print("Heading: ");
  Serial.print(heading);
  Serial.print("  ");
  Serial.print("Temperature: ");
  Serial.print(Temperature);
  Serial.print("C");
  Serial.print("  ");
  Serial.print("Altitude: ");
  Serial.print(Altitude);
  Serial.print("cm");
  Serial.print("  ");
  Serial.print("Pressure: ");
  Serial.print(Pressure);
  Serial.println(" Pa");
}

Errors:

Sample:12: error: 'BMP085' does not name a type
Sample:16: error: 'FreeSixIMU' does not name a type
Sample:18: error: 'HMC5883L' does not name a type
Sample.ino: In function 'void setup()':
Sample:27: error: 'dps' was not declared in this scope
Sample:32: error: 'sixDOF' was not declared in this scope
Sample:34: error: 'compass' was not declared in this scope
Sample:34: error: 'HMC5883L' was not declared in this scope
Sample:37: error: 'Measurement_Continuous' was not declared in this scope
Sample.ino: In function 'void loop()':
Sample:44: error: 'dps' was not declared in this scope
Sample:48: error: 'sixDOF' was not declared in this scope
Sample.ino: In function 'void getHeading()':
Sample:58: error: 'MagnetometerRaw' was not declared in this scope
Sample:58: error: expected `;' before 'raw'
Sample:60: error: 'MagnetometerScaled' was not declared in this scope
Sample:60: error: expected `;' before 'scaled'
Sample:63: error: 'scaled' was not declared in this scope

Thanks for the help

And the errors . . ?

Did you restart the the IDE after installing the libraries?

Where exactly did you download that code, its not obvious… And you have all the
libraries? Installed in the right place?

Apologies for taking so long to reply, been busy. Turns out I hadn't installed all of the libraries, only a couple.

I also made an error in my post, the example was actually downloaded from this link -> http://www.dfrobot.com/index.php?route=product/product&product_id=818#.Up5xQMRDt8E The board the example code is for is identical to mine except for the gyroscope which I've found other examples for.

Thanks for the help