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

Option to enable a headless mode #8

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

Option to enable a headless mode #8

nanobot9000 opened this issue May 24, 2016 · 4 comments

Comments

@nanobot9000
Copy link

It would be nice to be able to enable the Crazyflie to function in headless mode - perhaps a toggle in the settings to provide this function.

@ataffanel
Copy link
Member

This would use the same basic code as in #7: set the parameter flightmode.yawMode to 0. The parameter flightmode.yawRst can be used to reset the "front" orientation of the Crazyflie. I am not sure how to include that in the GUI.

@nanobot9000
Copy link
Author

Thanks and good to know. I do plan on learning how to make these changes a reality myself, but for now will need to defer to you guys. Yeah, not sure how to represent that as well in the GUI and not sure it is even the right option for this app or if it would be useful.

@EMart002
Copy link
Contributor

Headless mode doesn't seem to be too complicated, since we have a compass in our iOS devices and we tell the user to start with the blue leds facing to them. The only things that seems to be tricky is when a wind turns the device. Than it has to be recalibrated. A compass module install in the crazyflie could also solve this problem.

@ataffanel
Copy link
Member

The crazyflie has a compass, but it is not very useful indoor: just passing close to a computer will modify the magnetic field enough to completely turn the Crazyflie.

Firmware headless mode has been broken in the Crazyflie but there may actually be a better way to implement it from the ios client itself: Crazyflie uses gyroscope to keep its heading, it drifts over time but is is more than good enough during the time of a typical flight. The iPhone also has a gyroscope that can be used to read the device orientation.

Assuming the Crazyflie takes-off blue-leds towards the phone, it is possible to transform the pitch/roll setpoint in the phone to achieve headfree mode with back always aligned with the phone even if the phone turns.

This would be a nice experiment. The only potential problem is that we might have to setup a log block with the absolute yaw of the Crazyflie to be able to accurately calculate the pitch/roll transformation. Otherwise we can add a commander packet to send an absolute yaw instead of the current relative yaw rate.

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