Giter VIP home page Giter VIP logo

quad_simulator's Introduction

Quad Simulator using OpenGl and Pygame**

An OpenGl implementation of a quadrotor simulator in python.

1). "glQuad_Simulation.py" implements a bird's eye view of a Back-stepping strategy for attitude control.

2). "glQuad_Simulation_v2.py" implements both third-person view and bird's eye view. It implelements a Back-stepping strategy for attitude control of the quadrotor. Controls:- Press 'Spacebar' to increase the throttle and 'Left Control' key to decease the throttle Use Arrow Keys Left and right to increase or decrease Roll Use Arrow Keys Up and Down to increase or decrease Pitch Press 'Escape' key to end the simulation Press 'Shift' key to switch betwween the views

2). "glQuad_Simulation_v2.1.py" is a revamp of v2. It implements both third-person view and bird's eye view. It implelements a Back-stepping strategy for both attitude control and position control of the quadrotor. The control inputs can be provided from a Joystick as well!! After the end of Simulation, various plots of position tracking, attiude tracking are plotted. RMS error in position tracking is printed to terminal. Keyboard Controls:- Press 'Spacebar' to increase the throttle and 'Left Control' key to decease the throttle Use Arrow Keys Left and right to move Quadrotor along East-West direction Use Arrow Keys Up and Down to move Quadrotor along North-South direction Use Keys 'A' and 'D' to increase or decrease Yaw Press 'Escape' key to end the simulation Press 'Shift' key to switch betwween the views

Joytick Controls (tested on Logitech Attack 3. Make changes accordingly to ReadJoyInputs() to make it compatible with any other Joystick):-
  **Logitech Attack 3 has three axes (0-2) and 12 buttons (0-11)
  Move Axis-2 to increase/decrease the throttle
  Move Axis-0 to increase or decrease Roll
  Move Axis-1 to increase or decrease Pitch
  Press Buttons '8' and '7' to increase or decrease Yaw
  Press Button-2 to end the simulation and plot the relevant statistics
  Press Button-0 to switch betwween the views

quad_simulator's People

Contributors

vanurag avatar

Stargazers

 avatar

Watchers

Atulya Shivam Shree avatar  avatar

Forkers

wuyou33

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.