Giter Site home page Giter Site logo

rc-calc's Introduction

Welcome to RC-Calc!

🇫🇷 Version française disponible ici. 🇫🇷

A self-hosted hopefully one day all-in-one calculator for FPV planes, multirotors and other autonomous or R/C flying stuff.

This project aims to group in one place the different tools I made on Excel spreadsheets, in order to share them in a more user-friendly way.

What does it do for now?

⚠️ This is currently an alpha version, expect some bugs and very limited features!

It is currently under the form of a self-hosted web server. It means that when you run the program, it looks like a normal website but nothing actually goes in nor out of your computer.

For now, RC-Calc allows you to:

  • Set the proper mV/A for your current sensor, in order to get an accurate power/energy draw reading in your OSD. Might be useful for sweet long-range flights!
  • Build the ultimate li-ion pack. Choose your cells, series and parallel configuration and you will get the weight, price, voltage, capacity of the pack. Once configured, a battery comparator is available to determine what suits best your needs!

What's next?

I have some tools that just need to be included in this program and will give the following features:

  • A flight time tracking tool: log your flight times and distances so you can quickly tell if this new battery, propeller or any other equipment actually gives you more performance than usual.

I also have some other tools but I don't really know if they should be included since they are really specific and gave limited results for now, such as a CG calculator for example.

If you have some improvement ideas, please see the contribution section.

Also, I could eventually host the program online if there is a demand for it.

Getting started

Installation

For now, 2 ways are available to use this tool :

  1. From the source code (all platforms): this project was coded using Python 3. All you have to do is to download the source code, make sure you have Python 3 and all packages in requirements.txt installed and to start RC_Calc.py.
  2. Using the binaries (Windows only): In order to make it easier to use, a binay version is available so you just need to run RC-Calc.exe without installing any other softwares.

▶️ Download the latest stable version of those files on the releases page.:arrow_backward:

Be aware that RC-Calc will build a database in the db folder, so make sure to save its content when moving to a different version of the software.

Documentation

A detailed documentation is on its way using Sphinx.

Contribution

Massive thanks to @raymas for his help through this project !

If you have some ideas of features you would like to see in this program, feel free to open an issue. If you are unfamiliar with GitHub, contacting me on facebook or by email ([email protected]) is also fine.

Please keep in mind I am not a professional developer. Just doing this for fun in my spare time and using it as a learning platform to get better at coding and at using GitHub!

Libraries used

Bootstrap : for the user interface
Bootstrap-table : for the sortable tables
Font Awesome : for the icons

rc-calc's People

Contributors

gregczc avatar

Stargazers

 avatar  avatar raymas avatar

Watchers

raymas avatar  avatar  avatar

rc-calc's Issues

Static folder not served properly

The issue lies in RC_Calc.py. As the static folder is specified within the Flask constructor, no default URL path is provided.

Expected Behavior

Page is rendering with all the static resources

Current Behavior

No static resources are served, getting 404 on every /static link:

127.0.0.1 - - [20/Apr/2020 15:57:30] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/css/bootstrap.css HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/css/style_main.css HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/fontawesome-free/js/all.js HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/js/jquery-3.4.1.js HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/js/translation.js HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/js/include.js HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/js/bootstrap.bundle.js HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/js/include.js HTTP/1.1" 404 -
127.0.0.1 - - [20/Apr/2020 15:57:30] "GET /static/js/bootstrap.bundle.js HTTP/1.1" 404 -

The static URL is mapped to /:

127.0.0.1 - - [20/Apr/2020 16:00:42] "GET /fontawesome-free/js/all.js HTTP/1.1" 200 -

Possible Solution

We could either:

  • Replace each static references with url_for('static', filename='...') provided by flask.
  • Set static_url_path variable in the Flask's constructor.

Steps to Reproduce

  1. Install Flask 1.1.1,
  2. Start RC_Calc.py,
  3. The browser points to the index.html and no static resources are served.

Context (Environment)

  • Linux 5.6.4-arch1-1
  • conda 4.8.3
  • Python 3.8.2
  • Flask 1.1.1

Possible causes

To be investigated.

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.