你能否定义碰撞检测和运动检测的条件?
你的中断生成配置在我看来有点奇怪。
1)以下设置
CTRL_REG2
= 0x01启用中断发生器的高通滤波器2 2)
INT1_CFG = 0x95,如果所有轴的值都低于阈值,则要产生中断,因为在该中断发生器上使能了高通滤波器,在静止状态下条件为真且触发了中断
3)INT2_CFG = 0x95,
你想要产生中断,如果所有轴的值都低于0.125毫克10秒,这将很难生成,它将是相当长的自由落体:-),中断发生器2的高通滤波器未启用
我想,如果你改变,你会得到预期的行为
CTRL_REG2
设置为0x02。
以上来自于谷歌翻译
以下为原文
Can you please define the conditions for collision detection and motion detection?
Your interrupt generation configuration seems to me little bit strange.
1) Following settings
CTRL_REG2
= 0x01 enables high pass filter for interrupt generator not 2 2)
INT1_CFG = 0x95, you want to generate interrupt if the value in all axis is bellow threshold, as the high pass filter is enabled on this interrupt generator, the condition is true in still state and the interrupt is triggered
3) INT2_CFG = 0x95,
you want to generate interrupt if the value in all axis is bellow threshold 0.125mg for 10s which will be very difficult to generate, it would be quite long free fall :-), the high pass filter for interrupt generator 2 is not enabled
I guess, you will get expected behavior if you change
CTRL_REG2
settings to 0x02.
你能否定义碰撞检测和运动检测的条件?
你的中断生成配置在我看来有点奇怪。
1)以下设置
CTRL_REG2
= 0x01启用中断发生器的高通滤波器2 2)
INT1_CFG = 0x95,如果所有轴的值都低于阈值,则要产生中断,因为在该中断发生器上使能了高通滤波器,在静止状态下条件为真且触发了中断
3)INT2_CFG = 0x95,
你想要产生中断,如果所有轴的值都低于0.125毫克10秒,这将很难生成,它将是相当长的自由落体:-),中断发生器2的高通滤波器未启用
我想,如果你改变,你会得到预期的行为
CTRL_REG2
设置为0x02。
以上来自于谷歌翻译
以下为原文
Can you please define the conditions for collision detection and motion detection?
Your interrupt generation configuration seems to me little bit strange.
1) Following settings
CTRL_REG2
= 0x01 enables high pass filter for interrupt generator not 2 2)
INT1_CFG = 0x95, you want to generate interrupt if the value in all axis is bellow threshold, as the high pass filter is enabled on this interrupt generator, the condition is true in still state and the interrupt is triggered
3) INT2_CFG = 0x95,
you want to generate interrupt if the value in all axis is bellow threshold 0.125mg for 10s which will be very difficult to generate, it would be quite long free fall :-), the high pass filter for interrupt generator 2 is not enabled
I guess, you will get expected behavior if you change
CTRL_REG2
settings to 0x02.
举报