Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Altitude and velocity values #313

Open
NathanNoumowe opened this issue Jul 13, 2017 · 7 comments
Open

Altitude and velocity values #313

NathanNoumowe opened this issue Jul 13, 2017 · 7 comments

Comments

@NathanNoumowe
Copy link

NathanNoumowe commented Jul 13, 2017

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.

@tracernz
Copy link
Contributor

Uhhh, acro variant doesn't have baro right?

@NathanNoumowe
Copy link
Author

Yes it does have one.

@NathanNoumowe
Copy link
Author

NathanNoumowe commented Jul 18, 2017

Anyone?

@trollcop
Copy link
Member

trollcop commented Jul 22, 2017 via email

@NathanNoumowe
Copy link
Author

Okay thanks I'm gonna try that. Otherwise I fixed the problem with the velocity when I turn the card upside down. Files that i have were already edited by someone before me and there was a delay in the main. When I took it off, values stopped getting bigger and bigger when I flip the card. But for now the altitude value is still wrong.

@NathanNoumowe
Copy link
Author

I found this at the line 130, in the file telemetry_hott.c :

// Altitude
HoTTV4GPSModule.altitudeLow = GPS_altitude & 0x00FF;
HoTTV4GPSModule.altitudeHigh = GPS_altitude >> 8;

I'm not sure if it contain altitude value but I can not display it.

@trollcop
Copy link
Member

trollcop commented Jul 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants