Giter Club home page Giter Club logo

auto-mission-updater-opencv's Introduction

UAV Mission Updater

Main Purpose

This repository is created for Teknofest 2022 International UAV competition. The main purpose is to detect a red circular area with a radius of 1.25 meters from a minimum of 5 meters height. After identifying the coordinates of the target, a ball should be released at the correct time to hit the target. Since our purpose is to achieve this in AUTO mode, we need an automatic mission updating purpose in MissionPlanner, which was done with Python.

An image taken during the flight of the UAV

An image taken during the flight of the UAV


Hardware and Peripherals:

  • Pixhawk the Cube Orange (Autopilot Board)
  • Raspberry PI 4 - 4GB (Companion Computer)
  • Logitech C920 Webcam (Camera)

Software and Platforms:

  • Ardupilot - Stable 4.2.2 (Autopilot Software)
  • MissionPlanner - 2.0 (Ground Station Software)
  • Python - 3.9.2 (Language)
  • OpenCV - 4.5.2 (Image Processing)
  • DroneKit - 2.9.2 (Guiding the Autopilot)

Target Detection

HSV Filtering: For color detection, HSV filtering applied. In the figure below, one can see how RGB to HSV conversion done. For tuning, many test flights have been done.

RGB to HSV conversion

RGB to HSV conversion

Coordinate Determination

For the determination of coordinates of the target, global relative frame has been used. The calculations can be observed in <plane_functions.py>. The mainly used module for this process is DroneKit-Python. By usage of this module, we calculated the distance between the coordinates of the UAV and the target detected with OpenCV module.

Coordinate calculations photo from Teknofest competition.

Coordinate calculations photo from Teknofest competition.

Mission Updating

In mission updating, MissionPlanner interface has been used. By dronekit mission download and upload functions, we can change the route of our plane with the new coordinates of the target calculated in the first lap in the competition.

auto-mission-updater-opencv's People

Contributors

yilmaz0734 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mehmetkurt20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.