Skip to content

The drone is controlled with keyboard. The motivation of this roject is esing the control process of drone for novice users

Notifications You must be signed in to change notification settings

manishalingala/Drone-Control-with-keyboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Drone Keyboard Control

This script allows you to control a drone using your keyboard. You can perform actions such as takeoff, landing, and controlling the drone's movements using the arrow keys and other designated keys.

Prerequisites

Before running the code, make sure you have the following dependencies installed:

  • Python 3.x
  • Olympe
  • pynput

You can install the required Python packages using pip:

pip install olympe pynput

Usage

  1. Connect to the drone's Wi-Fi network.

  2. Update the DRONE_IP variable in the code to match the IP address of your drone. By default, it is set to 10.202.0.1.

  3. Run the script by executing the following command:

python script.py
  1. The script will establish a connection with the drone and wait for your input.

  2. Use the following keys to control the drone:

    • t: Takeoff
    • l: Landing
    • a: Move left
    • d: Move right
    • w: Move forward
    • s: Move backward
    • up arrow: Increase altitude
    • down arrow: Decrease altitude
    • left arrow: Rotate left
    • right arrow: Rotate right
    • esc: Quit the script
  3. Press the corresponding keys to control the drone's movements. The drone will respond accordingly.

  4. To quit the script, press the esc key.

Note: Make sure to fly the drone in a safe environment and comply with all local regulations and laws regarding drone usage.

License

This code is licensed under the MIT License. Feel free to modify and distribute it as needed.

Acknowledgments

About

The drone is controlled with keyboard. The motivation of this roject is esing the control process of drone for novice users

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%