Coder Social home page Coder Social logo

dridri / bcflight Goto Github PK

View Code? Open in Web Editor NEW
123.0 123.0 22.0 19.28 MB

Raspberry Pi based drone flight controller and remote control

License: GNU General Public License v3.0

CMake 1.52% C++ 78.61% C 17.87% Shell 0.36% Lua 1.64%
drone flight-controller quadcopter raspberry-pi

bcflight's Introduction

Adrien Aubry (aka drich)

Fullstack developer at Payflows.io

Languages

Low-level frameworks

Back-end frameworks and tools

Front-end frameworks

Database management systems

Cloud

System

bcflight's People

Contributors

dridri avatar emeric0101 avatar smarkoco avatar

Stargazers

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

Watchers

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

bcflight's Issues

recommendations for soldering

Hey! I've been mainly implementing a webserver to communicate with this project over WebRTC (if interested, see https://www.cloudchop.net, and type u: "pilot", p: "tester" for credentials to see a simulation/prototype). I will now have more time to begin testing receiving the video stream into the local C++ application.

I was just wondering if you already made a stencil design for applying the solder paste before reflow oven? If not, what has been your approach to attach all components? How are you able to solder one side, and then the other side if using reflow oven?

Thanks!

Is the HUD class instantiation necessary to get successful video stream in controller_pc?

When I try to run controller_pc after running flight, we are able to establish the sockets across 2020 and 2021 (not 2022, for microphone, which periodically prints "Socket ( 2022 ) connect error : Connection refused" in the controller_pc shell. I think this is not a problem, just documenting what we observed.).

I actually had to comment out the instantiation of hud = HUD{} line in config.lua in order to avoid an error: libpng: Not a PNG file. This libpng error had also caused the whole program to crash, so I had to comment out the instantiation and the calls to the hud:ShowImage() and hud:HideImage() methods in the config.lua script. I was wondering if the HUD not showing is somehow related to the stream also not showing? Maybe a black overlay covering the video feed or something?

I'm not sure what else could cause the black video feed, but I'm happy it seems like everything is connecting well!

When running flight, we get successful latency and telemetry updates (zero'd out ones, which is expected since we are just on the IO board right now), and both applications run without error, but for some reason the display remains black on controller_pc. I tried clicking "Start" under Record, and "Take picture" under Still picture, and no errors occured, but no feedback about why the screen could be black. I tried turning up the brightness too, but it didn't change

Attached outputs are when running sudo ./flight on the CM4 and ./controller_pc on my laptop. I also attached my current config.lua file HERE. If you have the time to take a look -- much appreciated! no rush though

image
image
image
image

flight Build errors! What compiler to use?

After installing all suggested dependencies from the Readme, I tried compiling the flight module directly on the RPi4 running Ubuntu 20.04. Unfortunately got some errors related to "unknown parameter '-m32'" and it suggested it couldn't find an arm compiler. I downloaded the below packages on the RPi4:

  • gcc-arm-linux-gnueabihf
  • g++-arm-linux-gnueabihf

After this, I got a different fatal error, "could not find WiringPi.h". I downloaded a wiringpi package for Ubuntu, but sadly that didn't resolve the error.

What build process would you recommend? Maybe cross compiling on my laptop rather than on the RPi4 itself? Much appreciate any tips

I think I got some other Cmake errors but I can't remember exactly what those were, more details later

Thanks! (By the way I got the camera so I'm trying to start testing it)

Edit: Ahhh I just realized, maybe I should be using some version of Raspbian?

testing motor output

Is there any test/examples on how to test the motor output only? if I dont need the nrf modules will the board stil work without those populated?

Raspberry Flight HAT

Hello! Great job!
Now I'm looking at the Raspberry Flight HAT and can't figure out why two RFM95W-915S2 modules are used?

Running into issues with running `flight`

Right now, my primary goals are:

  1. better understand how to configure flight so I can adjust which modules are used, and how to disable ones I'm not currently trying to test (because right now I am still running everything on an Raspberry CM4 IO board, with no components communicating except the camera)
  2. get flight to send the video feed to a pc_controller on another computer at 192.168.1.111

I've had a number of errors I'm trying to better understand. First, when running directly after compilation (just to see what errors I would get), I saw a "bad mount" error related to this line, so I was wondering what is the intention of mounting /var? I ended up commenting out the mount line and addressing a different "file not exist: /var/flight/config.lua" error by running mkdir /var/flight and cp config.lua /var/flight.

Next, I am having issues related to No DPI CRTC/Connector found. Do you know how I could just disable certain modules so I can just focus on the video feed for now?
image

Finally, would you mind letting me know how I can configure the socket IP address to test the video transmission to a running controller_pc process on another local PC (such as 192.168.1.111)? I see at this line where the variable is declared, but am not sure where the value of SOCKADDR gets set. I looked through all the "config"-related files but ran into a dead end, sadly.

Thanks in advance!

Tutorial

Hi and a big hello from france.
Great job you're done.
Have you got a tutorial or a link for schemas and installations please?
Thank you.

Manual for installation

Hey @dridri,

I would like to setup your project in my spare time.
However documentation is very limited. Are you planning to add it?

Thanks!

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.