i want to get angle of rotation from a tri axis acceleromter(adxl330) how can i exactily calibr sensor to get a good out put? i have manually calibr it but the rang of out put of roll and pitch is from -175 to about 175 degrees.between this the out put is incorrect. i want to get fully 360 degrees from sensor. thanks
//ax is accelerometer x output and ...
float bank = atan2(ay,az);
float elevation = -atan2(ax,az);