The MPU9150 is a 9 axis sensor that includes 3 accelerometers, 3 gyroscopes and 3 magnetometers. All accessible through I2C. The AP_InertialSensor_MPU9150 class allows APM to use this sensor.