GithubHelp home page GithubHelp logo

henrytseng / betaflight-configurator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from betaflight/betaflight-configurator

0.0 1.0 0.0 82.18 MB

Cross platform configuration tool for the Betaflight firmware

License: GNU General Public License v3.0

JavaScript 65.18% Ruby 0.52% CSS 0.63% HTML 15.81% Inno Setup 7.81% Vue 1.34% Less 8.72%

betaflight-configurator's Introduction

Betaflight Configurator

Betaflight

Latest version Build Crowdin Quality Gate Status License: GPL v3

Betaflight Configurator is a crossplatform configuration tool for the Betaflight flight control system.

It runs as an application under different operating systems and allows you to configure the Betaflight software running on any supported Betaflight target. Downloads are available in Releases.

Various types of aircraft are supported by the tool and by Betaflight, e.g. quadcopters, hexacopters, octocopters and fixed-wing aircraft.

Authors

Betaflight Configurator is a fork of the Cleanflight Configurator with support for Betaflight instead of Cleanflight.

This configurator is the only configurator with support for Betaflight specific features. It will likely require that you run the latest firmware on the flight controller.

If you are experiencing any problems please make sure you are running the latest firmware version.

Installation

Standalone

We provide a standalone program for Windows, Linux, Mac and Android.

Download the installer from Releases.

Notes

Windows users

The minimum required version of windows is Windows 8.

MacOS X users

Changes to the security model used in the latest versions of MacOS X 10.14 (Mojave) and 10.15 (Catalina) mean that the operating system will show an error message ('"Betaflight Configurator.app" is damaged and can’t be opened. You should move it to the Trash.') when trying to install the application. To work around this, run the following command in a terminal after installing: sudo xattr -rd com.apple.quarantine /Applications/Betaflight\ Configurator.app.

Linux users

In most Linux distributions your user won't have access to serial interfaces by default. To add this access right type the following command in a terminal, log out your user and log in again:

sudo usermod -aG dialout ${USER}

Post-installation errors can be prevented by making sure the directory /usr/share/desktop-directories exists. To make sure it exists, run the following command before installing the package:

sudo mkdir /usr/share/desktop-directories/

The libatomic library must also be installed before installing Betaflight Configurator. (If the library is missing, the installation will succeed but Betaflight Configurator will not start.) Some Linux distributions (e.g. Fedora) will install it automatically. On Debian or Ubuntu you can install it as follows:

sudo apt install libatomic1

Graphics Issues

If you experience graphics display problems or smudged/dithered fonts display issues in Betaflight Configurator, try invoking the betaflight-configurator executable file with the --disable-gpu command line switch. This will switch off hardware graphics acceleration. Likewise, setting your graphics card antialiasing option to OFF (e.g. FXAA parameter on NVidia graphics cards) might be a remedy as well.

Unstable Testing Versions

Unstable testing versions of the latest builds of the configurator for most platforms can be downloaded from here.

Be aware that these versions are intended for testing / feedback only, and may be buggy or broken, and can cause flight controller settings to be corrupted. Caution is advised when using these versions.

Languages

Please do not submit pull requests for translation changes, but read and follow the instructions below!

Betaflight Configurator has been translated into several languages. The application will try to detect and use your system language if a translation into this language is available. You can help translating the application into your language;

If you prefer to have the application in English or any other language, you can select your desired language in the first screen of the application.

App build via Vite (web)

Development

  1. Install node.js (refer to .nvmrc for required version)
  2. Install yarn: npm install yarn -g
  3. Change to project folder and run yarn install.
  4. Run yarn dev.

The web app will be available at http://localhost:8000 with full HMR.

Build Preview

  1. Run yarn build.
  2. Run yarn preview after build has finished.
  3. Alternatively run yarn review to build and preview in one step.

The web app should behave directly as in production, available at http://localhost:8080.

App build via NW.js (windows/linux/macos) or Cordova (android)

Development

  1. Install node.js (refer to .nvmrc for required version)
  2. Install yarn: npm install yarn -g
  3. (For Android platform only) Install Java JDK 8, Gradle and Android Studio (Android SDK at least level 19). On Windows you have to extract Gradle binaries to C:\Gradle and set up some environmental variables.
Variable Name Value
ANDROID_HOME %LOCALAPPDATA%\Android\sdk
ANDROID_SDK_ROOT %LOCALAPPDATA%\Android\sdk
Path %ANDROID_HOME%\tools
%ANDROID_HOME%\platform-tools
C:\Gradle\bin
  1. Change to project folder and run yarn install.
  2. Run yarn start.

Running tests

yarn test

App build and release

The tasks are defined in gulpfile.js and can be run with through yarn:

yarn gulp <taskname> [[platform] [platform] ...]

List of possible values of <task-name>:

  • dist copies all the JS and CSS files in the ./dist folder [2].
  • apps builds the apps in the ./apps folder [1].
  • debug builds debug version of the apps in the ./debug folder [1][3].
  • release zips up the apps into individual archives in the ./release folder [1].

[1] Running this task on macOS or Linux requires Wine, since it's needed to set the icon for the Windows app (build for specific platform to avoid errors). [2] For Android platform, dist task will generate folders and files in the ./dist_cordova folder. [3] For Android platform, you need to configure an emulator or to plug an Android device with USB debugging enabled

Build or release app for one specific platform

To build or release only for one specific platform you can append the plaform after the task-name. If no platform is provided, the build for the host platform is run.

  • MacOS X use yarn gulp <task-name> --osx64
  • Linux use yarn gulp <task-name> --linux64
  • Windows use yarn gulp <task-name> --win64
  • Android use yarn gulp <task-name> --android

Note: Support for cross-platform building is very limited due to the requirement for platform specific build tools. If in doubt, build on the target platform.

You can also use multiple platforms e.g. yarn gulp <taskname> --osx64 --linux64. Other platforms like --win32, --linux32 and --armv8 can be used too, but they are not officially supported, so use them at your own risk.

Leverage GitHub-Actions to build binaries

You can use the GitHub Actions tab in your fork to build binaries as well. Select Actions>Manual Build>Run Workflow. Choose your custom branch and click Run workflow. The workflow will dispatch in a few moments and upon completion, the build "Artifacts" will be available for download from within the workflow run.

Support

If you need help please reach out on the betaflightgroup slack channel before raising issues on github. Register and request slack access here.

Issue trackers

For Betaflight configurator issues raise them here

https://github.com/betaflight/betaflight-configurator/issues

For Betaflight firmware issues raise them here

https://github.com/betaflight/betaflight/issues

Technical details

The configurator is based on chrome.serial API running on Google Chrome/Chromium core.

Developers

We accept clean and reasonable patches, submit them!

Credits

ctn - primary author and maintainer of Baseflight Configurator from which Cleanflight Configurator project was forked.

Hydra - author and maintainer of Cleanflight Configurator from which this project was forked.

betaflight-configurator's People

Contributors

mikeller avatar ctn-dev avatar hydra avatar mcgivergim avatar haslinghuis avatar skaman82 avatar blckmn avatar borisbstyle avatar asizon avatar chmelevskij avatar basdelfos avatar limonspb avatar dependabot[bot] avatar kiteanton avatar tricoptery avatar github-actions[bot] avatar docteh avatar atomgomba avatar ivofpv avatar nighthawk32 avatar nathantsoi avatar hthuren avatar dannixon avatar etracer65 avatar thenickdude avatar frozenskys avatar dthubereng avatar gaelj avatar bilson avatar ctzsnooze avatar

Watchers

 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.