Hi to all,
I work with mpu6050 for UC3 (with the compass included), UC3 A3 xplained evaluation kit and JTAGICE mkII debugger.
I called back, in the main, the function inv_get_magnetometer_float, which allows me to evaluate the magnetic field, and I noticed that assumes exactly zero values for all axes. I would like to know what these strange values depend.
Thanks
- Log in to post comments
phpbb Topic ID
14535
Re: Re: Strange magnetometer values
The most likely cause is that the device is operating in 6-axis mode, or the compass is not yet configured. Are you able to read registers from the device?
Re: Re: Strange magnetometer values
I consulted the document "MPU and MPU-6000-6050 Revision 3.2 Register Map and Descriptions" to find a way to access the records without success, thus can you tell me a solution to access the registers using atmel studio?
Re: Re: Strange magnetometer values
Based on the datasheets, you can interface to the compass through the secondary I2C port, using the MPU 6050 as a bypass. If you want to use the 9-axis sensors in the UC3 Project and MotionApps functions, make sure UMPL_NINE_AXIS is defined within your project.
Re: Re: Strange magnetometer values
Hi,
I declared the symbol UMPL_NINE_AXIS but, when I compile I get the following error:
UMPL_NINE_AXIS not supported with MPU6050A2
I've seen that the AVR project available on the Donwload section if for 6-axis implementation (no compass).
Furthermore, in umpl-setup.c the following file is included
but I don't see this file in the project. Where can I get these files?
Any help?
Regards
Following you can see the list of symobols on AVR32/GNU C Compiler:
Re: Re: Strange magnetometer values
Check out the umpl_setup.c file located here: srctargetsuc3bspumpl. Are you able to locate the source of that error? Make sure that CONFIG_MPU_SENSORS_MPU6050B1 is defined, and the MPU6050A2 is not.