Closed hmmyeah closed 10 years ago
Hi Jim,
Great library! I am using it to calculate quaternions for quadcopter stability control. I have a few niggling questions about the comments in the library that are a bit confusing to me. For example, in the .cpp file this appears to set the interrupt active high but the comment says active low. Is this a typo or am I missing something?
/* INT_CTRL_REG_M to set push-pull/open drain, and active-low/high Bits[7:0] - XMIEN YMIEN ZMIEN PP_OD IEA IEL 4D MIEN XMIEN, YMIEN, ZMIEN - Enable interrupt recognition on axis for mag data PP_OD - Push-pull/open-drain interrupt configuration (0=push-pull, 1=od) IEA - Interrupt polarity for accel and magneto 0=active-low, 1=active-high IEL - Latch interrupt request for accel and magneto 0=irq not latched, 1=irq latched 4D - 4D enable. 4D detection is enabled when 6D bit in INT_GEN1_REG is set MIEN - Enable interrupt generation for magnetic data 0=disable, 1=enable) */ xmWriteByte(INT_CTRL_REG_M, 0x09); // Enable interrupts for mag, active-low, push-pull
Also, the mag ODR seems to be set to 50 Hz but the comment says 100 Hz.
Lastly, in the serial example I think some of the ODR and/or bandwidth options print as 125 Hz when they should be 12.5 Hz.
When I finish the 9DoF fusion example I'll send it along.
Kris Winer
hey @hmmyeah: are you still running into issues with your board, or have you reached out to tech support regarding your board?
@ToniCorinne, no I never was able to get the problem solved. any help ?
I would recommend emailing techsupport@sparkfun. They will have more information regarding whether we had a bad batch of chips go through or not. If they need to get you set up with a replacement, they will also be able to help you through that.
Closing issue unless additional help or commentary is needed.
I am the second person to have the exact same problem detailed here: https://forum.sparkfun.com/viewtopic.php?f=14&t=37788
It's only the accelerometer. Something must be wrong with the library file and/or assignments.. can't find it though