Gyro, accelerometer, and compass

I have all 3 sensor. a gyro, accelerometer, and compass. I got them all working too.

How would I now incorporate them all together?

-I know I need to tilt compensate the compass.
-I would like to get the information to make a virtual 3d model of the device

arduinopi:
How would I now incorporate them all together?

To do what? You could 'incorporate' them together by wrapping an elastic band around them, but perhaps that isn't your goal.

I would like to have the sensors check each other to reduce jitter from readings. I am trying to make a 3D model on the computer that is accurate from the unit.

arduinopi:
I am trying to make a 3D model on the computer that is accurate from the unit.

What does this mean? You want to produce a 3D image showing what the hardware looks like? You want to use the hybrid device as a 3D drawing device? Something else?

PeterH:

arduinopi:
I am trying to make a 3D model on the computer that is accurate from the unit.

What does this mean? You want to produce a 3D image showing what the hardware looks like? You want to use the hybrid device as a 3D drawing device? Something else?

I think he means that he wants to be able to get an extremely accurate, where exactly am I pointing, and how fast am I accelerating (which could be turned into how fast am I going) readout for a computer. That combined with accurate GPS coordinates would then be good for tracking whats going on with something.

Why you didn't get a 3 Axis compass though is a little beyond me, because then there wouldn't be much requirement for programming your own compensation. And they're really cheap (actually most single axis or dual axis units are more expensive, though they may be more accurate)

But so when you say you want to compensate it for tilting. What degree of tilt compensation you want. Cause if you tilt the thing more then 10 degrees your numbers are going to be quite a bit off regularly, and anywhere past 45 degrees of tilt, and your practically going to be making up your direction out of gyro data.

Edit. Actually quick thing, make it a bit easier for us. Which sensors do you have exactly?

I have these sensors

http://www.microcenter.com/product/390033/Compass_Module_3-Axis

arduinopi:
I have these sensors
http://www.radioshack.com/product/index.jsp?productId=12310182
http://www.microcenter.com/product/390033/Compass_Module_3-Axis
RadioShack.com Official Site - America's Technology Store

....... then why do you need to do any tilt compensation, you've got a tri-axis compass
It should just be outputting 3 angles, then use the accelerometer to figure out which way down is.
if your jsu ttrying to find north it shoudl be enough to level the thing by hand and then get the reading. perhaps if your buildign a drone or something though youd need more work