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.
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:
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.