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 reading #25

Open
green-creeper opened this issue Feb 8, 2024 · 3 comments
Open

Altitude reading #25

green-creeper opened this issue Feb 8, 2024 · 3 comments

Comments

@green-creeper
Copy link

Hi, I'm comparing altitude reading from MSP and one I see in OSD. In static position they match move when I move drone the altitude increases, but slowly climbing back to 0 so that when I put the quad down it becomes negative and starts increasing. Any ideas what's happening?

In MSP reference I see this:
image

Maybe parsing is wrong and "vario" affects reading?

@green-creeper
Copy link
Author

So, this seems error in multiwii documentation.
It looks like the altitude is in last 4 bytes instead of first 4.

I think this works

self.SENSOR_DATA['altitude'] = round((self.readbytes(data[6:], size=32, unsigned=False) / 100.0), 2)

@ricardodeazambuja
Copy link
Collaborator

@yannbouteiller, have you noted this before?

@yannbouteiller
Copy link
Contributor

No but I encountered issues with altitude on several occasions, might be related.

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