Hello friends
I want to add gyroscope filter from Six_Axis_Complementary_Filter library to the stm32 project. I initialized filter in main in this way:
int main(void)
{
CompInit(&Data, 0.002, 0.001);
.
.
.
here initialization of other libs
.
.
.
while(1){}
}
Next i put the filter code to interruption:
if(htim->Instance == TIM11)
{
CompStart(&Data);
CompUpdate(&Data);
CompAnglesGet(&Data, &X_d, &Y_d);
}
Is something wrong with this implementation? It does not work. It always shows that the angles are = 0.
Hello friends
I want to add gyroscope filter from Six_Axis_Complementary_Filter library to the stm32 project. I initialized filter in main in this way:
int main(void)
{
CompInit(&Data, 0.002, 0.001);
.
.
.
here initialization of other libs
.
.
.
while(1){}
}
Next i put the filter code to interruption:
if(htim->Instance == TIM11)
{
CompStart(&Data);
CompUpdate(&Data);
CompAnglesGet(&Data, &X_d, &Y_d);
}
Is something wrong with this implementation? It does not work. It always shows that the angles are = 0.