Coder Social home page Coder Social logo

README

Pydroneとは

PyDroneはRaspberry Piで制御するDroneです

姿勢制御を含むすべての制御をPythonで記述しています。 ハードウエアには、特別な制御基板は必要なく、センサー、ブラシレスモータの制御モジュール(ESC)を直接Raspberry Piに接続します。

基本的なPID制御による6軸(加速度3軸、ジャイロ3軸)を行っています。 現在は単純なPID制御のみですが、制御アルゴリズムの改良や機能の追加も行っていきたいと思います。

ハードウエアについては、できるかぎり私が作成したものの情報を資料として 含めています。参考にしてください。

Pydron プログラムの使い方

ワイヤレスゲームパットで操作する場合

cd PyDrone/run
sudo python3 ../pydrone --hid

WiFiで操作する場合

cd PyDrone/run
sudo python3 ../pydrone

WiFiで操作する場合(中継用Raspberry Piで実行する)

cd PyDrone
sudo python3 joystick_over_wifi.py [pydroneのIPアドレス] 8000

操作方法

Raspberry Pi 電源ON

プログラムを起動

LEDが点滅する
↓ 水平な場所に置く

左stickを引いて(回転数最低)のまま保持する ↓
LEDが点灯し、プロペラが回り始めるのを待つ。(一度少し回転して停止するが長く待つ) ↓
回転したら、左stickを少しづつ前に倒し、回転数を上げ上昇させる ↓
操縦

左stickを引く(回転数最低)と停止する

左stick前後 モータ回転高、低 左stick左右 反時計回り、時計回り 右Stick前後 前後 右Stick左右 左右

ボタン1 トリム左 ボタン2 トリム前 ボタン3 トリム後 ボタン4 トリム右 ボタン5 トリム下(モータ回転数低) ボタン6 トリム上(モータ回転数高)

pydrone's Projects

rpio icon rpio

RPIO is a GPIO toolbox for the Raspberry Pi.

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.