Skip to content

Project-Hex/HexControl1920

Repository files navigation

img

HexControl 19/20

Control Team Files for Project Hex 20/21

Objectives

img

Communication

Tasks

Core Mission Tasks

  • Take-off
  • Navigation and Cargo Delivery
  • Return and Landing
  • Option to replete cargo

Optional Mission Tasks

  • Speed Trial
  • Ground Marker Identification
  • Area Search (Rectangular Area)

Goals

  • Start using python and dronekit
  • Start researching appropriate hardware
  • Simple take-off and land
  • Simple go to

Route distances

The organisers will provide details of the routes from the Launch Point to the Drop Zone at the start of the demonstration event; as guidance for the teams, the approximate distances are expected to be: Route A: 4.0 km; Route B: 2.5 km; Route C:1.5 km The distance from the Drop Zone back to the Launch Point is expected to be less than 0.5 km. All distances quoted are the straight-line distances between Waypoints, and do not account for positioning manoeuvres or turn radio.

Image Recognition

Goals

  • Make different multi-colored test images
  • Start developing based on test images
  • Try different color detection methods and save results
  • Try different target detection methods and save results

Tasks

  • 4 Ground Markers each with its own alphanumeric character (possibly color too)
  • Must report back to the ground station the GPS co-ordinates, colour of the inner square and the alphanumeric character.

img

How?

  • Corner Detection?
  • Edge Detection? (Last year's method)
  • Color-filtering?
  • Other options?

Getting Started

Setup

Communication / Drone Control

Install Mission Planner, so you can view your simulation.

Install Python 2.7 from the anaconda website. (Make sure that you note the install path)

Once installed, run the anaconda navigator, go to environments and create a new environment, making sure that Python 2.7 is selected.

After the environment has been created, run the anaconda powershell prompt, and type in the following:

conda activate name-of-the-environment-you-created

Make sure that (base) has now to changed to (name-of-your-environment), then type in:

pip install dronekit
pip install dronekit-sitl
conda install spyder-kernels=0.* 

Now you have installed dronekit on a python2.7 virtual environment!

To start programming run spyder(should have been installed with Anaconda).

Before you can start typing in code, you need to make sure that spyder is using the virtual environment you created.

To do that go to Tools->Preferences->Python interpreter, and select Use the following python interpreter.

Now browse to the location where anaconda is installed then go to envs/name-of-your-env/python.exe, for example:

C:/Projects/Anaconda/envs/Hex/python.exe

Test if it worked by running:

import dronekit, dronekit_sitl

If it executed with no problems then you're ready to start writing dronekit programs!

Make sure you install Mission Planner, so you can view your simulation.

Dronekit documentation

Dronekit-MissionPlanner Introduction videos

Check out the dronekit examples on this repo.

Antenna Tracker

General Guides & Info

Research & Examples

Windows

The project has a Visual Studio project ready to use. The only prerequisites are a local install of OpenCV.

OpenCV

Download the OpenCV Binaries for Windows and unpack them somewhere on your system. (e.g. C:\Program Files\opencv)

Set the OPENCV_DIR environment variable to the .\build\x64\vc15 folder inside your OpenCV installation directory. (e.g. C:\Program Files\opencv\build\x64\vc15)

Add the following entry to your PATH environment variable: %OPENCV_DIR%\bin

Environment variables can be set under Control Panel\System and Security\System\Advanced System Settings\Environment Variables....

The Visual Studio project will use the OpenCV install specified by your OPENCV_DIR environment variable.

Image Recognition

About

Control Team files for Project Hex 19/20

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published