Skip to content

Problem with implementation #5

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions