Code Monkey home page Code Monkey logo

uav_hums's Introduction

Machine Learnt HUMS for UAVS Simulator

Final Year Project Repo starting the process for machine learnt based HUMS for UAVs. This repo aims to have a curdly implemented neural network monitoring controller error correction to detirmine the health of the motor/rotor sets onboard.

Required Packages/Dependancies

  • Python 3.6
  • Tensorflow >= 1.13 (Machine Learning)
  • Scipy >= 1.2.0 (Various Mmthematical operations)
  • Numpy >= 1.16.1 (Various mathematical operations)
  • Pandas >= 0.24.1 (Flight data processing)
  • Matplotlib >= 3.0.2 (Graph plotting)
  • h5py >= 2.9.0 (ML model save/restore)

Original Material Notice

The underlying quadcopter model is an adapted version of Abhijit Majumdar's Quadcopter Simulator used under the project's MIT Open Source Licence.

Getting Started

The simulation environment is accessed by importing the sim file and creating a new simulation object. Note that scipy restrictions may mean only one simulation object may be created per session.

import sim

newSim = sim.Sim() # Create new sim object
newSim.set_params(goals=[(5, -5, 3), (-4, 4, 6)], goal_time=8)  # Set goals as x,y,z coords and how long between switch goals.
newSim.set_failure_mode(setting='random')  # Set failure mode settings (See below)
newSim.see_gui = False  # Choose whether to display the 3D plot (slows performance) (Optional)
newSim.see_motor_gui = False  # Choose whether to accompany the 3D plot with motor performance graphs
newSim.time_scale = 0  # Set approximate timescale request (0=as fast as possibl,e 1=attempt real time. And value 0<=t<=1 accepted)
newSim.ask_save_destination()  # Open the pop up to set flight data to custom folder and not default. 
newSim.run_sim()  # Start the simulation.

The above example will run the simulation in full-speed-headless mode, i.e. as fast as it can without any gui elements. It will save the flight data to a destination of your choosing.

Data Analysis

This project comes with a flight data analysis tool, a bit like reading an aircraft black box, that has graphs of the controller and quadcopter positional data. It can plot the flight path in 3D, show physical data compared to controller requested values etc.

uav_hums's People

Contributors

jubjamie avatar

Watchers

James Cloos avatar

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.