GithubHelp home page GithubHelp logo

rollingbug / onercfw Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 10.0 9.31 MB

An Arduino/AVR based flight controller for RC fixed wing.

C++ 58.25% C 18.83% Python 22.91% Game Maker Language 0.02%
arduino flight-controller pid flight-simulator diy remote-control gyroscope accelerometer sensor-fusion gnss

onercfw's Introduction

OneRCFW

An Arduino/AVR based flight controller for RC fixed wing.

- 5 input channels (Throttle, Ailerons, Elevator, Rudder, flight mode)  
- 4 output channels (0.5 us resolution PWM/PPM signal generator).  
- Airplane NED attitude tracking function (with 6 DOF sensor, 200 Hz attitude update rate).
- Airplane auto level (roll and pitch) control function.  
- Airplane heading lock control function.  
- Airplane flight mode control function (manual mode, auto level mode and GPS mode).  
- Airplane GPS return to home function (unstabled, still need to do more test!)
- RC output mixer function (for normal airplane, delta wing and V tail).  
- 6 DOF sensor calibration function.  
- Radio control stick position calibration function.    
- Airplane failsafe function.  
- Airplane configuration save/reload/reset function.  
- Airplane runtime status monitoring function.  

PCB picture

Pin assignment picture




Details:

Flight controller source code: OneRCFW
Flight controller schematic and PCB layout: OneRCSchematic_v1
Flight controller test video: 20171029 FC test in very windy (12.5m/s) day.
GUI monitoring tool: OneRCGUI
Design documents: OneRCDesignDoc

FC block diagram

Build and Installation:

  1. Prepare Arduino 1.6.9 IDE.
  2. Click the OneRCAirplane.ino to launch Arduino IDE.
  3. Change board type setting to "Arduino Nano" or "Pro Mini" and correct UART port setting.
  4. Build and upload the firmware to Arduino or customized PCB.
  5. Connect the Radio receiver to flight controller.
  6. Check the channel output signal and the status of on board LEDs.


For Simulation mode:

  1. Download and instll FlightGear, and copy the protocol and configuration file to speicfic folder.
    • Copy MAVLink.xml to FlightGear\data\Protocol\
    • Copy .fgfsrc to C:\Documents and Settings{User name}\
  2. Modify the #define IMU_SENSOR_MPU6050 in imu_ctrl.h, change to #define IMU_SENSOR_FG_SIM.
  3. Rebuild and upload the firmware to Arduino.
  4. Modify the COM port setting in both the MP_fdm_nmea.py and MP_fdm_sim.py, and lanuch these 2 files.
  5. Lanuch fgfs.exe and enjoy the flight in simulator.

OneRC_FG_Simulator

onercfw's People

Contributors

rollingbug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

onercfw's Issues

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.