Skip to content

Altitude and velocity values #313

@NathanNoumowe

Description

@NathanNoumowe

Hello, I am trying to trigger a parachute with a naze32 Acro and for that I need to get the altitude and velocity values. So In the imu.c file I used printf to watch their values:

printf("Alt = %d ",(int)accAlt);
printf("VitZ = %d\n",( int)accZ_tmp);

But the altitude value isn't right at all. It's changing pretty slowly and the values are huge while it's suppose to be in centimeters. The velocity have pretty much same problems.
The values get also completly crazy when I turn the card upside down.
Is it normal? If it's not how can I fix this?

Thank you in advance for your answers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions