Fullstack developer at Payflows.io
dridri / bcflight Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi based drone flight controller and remote control
License: GNU General Public License v3.0
Raspberry Pi based drone flight controller and remote control
License: GNU General Public License v3.0
Fullstack developer at Payflows.io
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!
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
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?
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?
Hello! Great job!
Now I'm looking at the Raspberry Flight HAT and can't figure out why two RFM95W-915S2 modules are used?
Right now, my primary goals are:
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)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?
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!
What's the resolution of the oneshot125 ? Is it 1us -> Resoution of 125(ca.7bit)? And is this accruate enought to control the motors?
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.