Compass of IMU module giving same values in all 3 directions


#1

I was testing the compass of IMU. For simplicity I was using code for MPU9150 on Arduino website: http://playground.arduino.cc/Main/MPU-9150

The issue is I was getting the similar (almost same) readings in all three direction of compass. I have not worked much with magnetometer so I am not sure this is normal or there is something wrong. Could anybody please help me in getting independent values in each of 3 directions. Any effort will be appreciated.

Thanks and Regards,

Pratap