Skip to content

Takeoff and Land using Keyboard [pygame] #373

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

Merged
merged 1 commit into from
Aug 13, 2021
Merged

Takeoff and Land using Keyboard [pygame] #373

merged 1 commit into from
Aug 13, 2021

Conversation

woosal1337
Copy link
Contributor

A simple pygame used keyboard controller. Using the "Up Arrow" key, you can arm and take off the drone while using "Down Arrow" to land it. A special "i" button was added to display the current information of the drone as following: battery, whether the drone is in air or not, GPS, and finally the position. These were taken from examples/takeoff_and_land.py and examples/telemetry.py modules.

Requirements:
pygame

Installation:

$pip3 install pygame

Run:

$python3 takeoff_and_land_keyboard_control.py

@woosal1337 woosal1337 changed the title takeoff_and_land_keyboard_control.py Takeoff and Land using Keyboard [pygame] Aug 3, 2021
@julianoes
Copy link
Collaborator

Oh awesome, thanks @woosal1337! I will leave the review to @JonasVautherin next week.

@woosal1337
Copy link
Contributor Author

Oh awesome, thanks @woosal1337! I will leave the review to @JonasVautherin next week.

Awesome! Thank you so much Julian!

Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks a lot!

@JonasVautherin JonasVautherin merged commit ef0a72a into mavlink:main Aug 13, 2021
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

Successfully merging this pull request may close these issues.

3 participants