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

Add Button/Option for Altitude Hold #7

Open
nanobot9000 opened this issue May 24, 2016 · 5 comments
Open

Add Button/Option for Altitude Hold #7

nanobot9000 opened this issue May 24, 2016 · 5 comments

Comments

@nanobot9000
Copy link

It would be nice to have an altitude hold feature in the app. Either hover at a certain level and then select that point as the hold position or if there is a way in the settings to tell it not to exceed a certain height - sort of an artificial ceiling.

@EMart002
Copy link
Contributor

EMart002 commented May 24, 2016

@ataffanel do you know, is there any chance to get the tilt and accelleration data via the crazyflie-firmware via bluetooth? I'd really like to implement this feature and some others @nanobot9000 mentioned.

@ataffanel
Copy link
Member

Setting altitude-hold would be fairly easy using the param setByName command: https://wiki.bitcraze.io/doc:crazyflie:crtp:param#set_by_name. Note that the alt-hold is based on pressure and so it will be hard to get an absolute altitude reading. What we have on the python client is to keep an altitude and allows for relative movement around it (ie. go up, go down).

Getting tilt and acceleration is another story because it requires a complete implementation of the log subsystem which require to fetch the log variable table of content. This would be nice and I can create a ticket for it. It is not required for altitude-hold though.

@ataffanel
Copy link
Member

To enable altitude-hold you need to:

This is a bit messy and we are about to clean it up (soon we will be able to pass rising-rate in m/s directly in the commander packet), but this scheme will anyway be kept for compatibility.

@nanobot9000
Copy link
Author

I would be happy to test this out but my experience with applying code changes is just beginning. I defer to the experts for now and look forward to testing it.

@nanobot9000
Copy link
Author

I would really like to test out the alt hold functionality in the ios app, but don't have the experience in coding it. Since I am getting a lot of yaw rotation using the app it would be nice to be able to launch it and have it hold relative so I can observe what might be causing the rotation issue. Thanks!

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

No branches or pull requests

3 participants