Automated rc heli

Sorry i must be a little slow, if an accelerometer detects linear movements, how can it detect tilts?

Accelerometers do not detect “movements”. They detect linear acceleration plus gravity. For example, if your z-axis points up, and the accelerometer is stationary, you will read (0, 0, -1g). If your accelerometer is in free-fall, you will read (0, 0, 0). A car pulling a 2 g left turn would read something like (2g, 0, -1g). If the accelerometer is tilted, say, 30 degrees towards x, you will measure (0.5g, 0, -0.9g).

-Paul

Oh yes now i get it!