DroneBridge icon indicating copy to clipboard operation
DroneBridge copied to clipboard

How can I use this as a standalone program on Ubuntu?

Open Jcwscience opened this issue 4 years ago • 8 comments

I have an Nvidia arm64 board that I would like to use, but I’m having considerable difficulty getting the program to run. I’ve changed all of the file paths I can find in the project source to match my install directory, but it seems like some of the scripts are dependent on the file system layout of a raspberry pi. Is this the case or am I not using the source build correctly? Thanks!

Jcwscience avatar Nov 26 '21 15:11 Jcwscience

Yes, you may need to adjust paths in the startup scripts folder. The video capture and display part are also RPi specific. You will need to exchange the calls to raspivid and hello_video (video player on the receiving side) with valid calls to something supported by Nvidia. You should try starting and testing the modules one by one. Manually run the init_wifi.py script to enable monitor mode. Then manually start the control module and always listen for errors etc.

seeul8er avatar Nov 27 '21 00:11 seeul8er

Ok, got it. Do the instructions on the wiki for enabling monitor mode apply to connecting to the clean raspberry pi image? For the default frequency, or do I need to edit the air pi config?

Jcwscience avatar Nov 27 '21 00:11 Jcwscience

This is a generic linux script that should work That way you do not need the config files, just enter the values inside the script directly. Enabling monitor mode is nothing special to DroneBridge. It's always the same. DroneBridge just makes sure we are locked to a channel and data rate

seeul8er avatar Nov 27 '21 00:11 seeul8er

Right, I have used that script. I just wanted to make sure I don’t need to change anything on the air pi first. I’ll see if I can get the control module started. I’m running a bit of a hackish Ubuntu version to start with, but I think I can get it working. Thanks again for the help!

Jcwscience avatar Nov 27 '21 00:11 Jcwscience

@seeul8er I have got monitor mode working, and I have adapted the script but I keep getting this message endlessly scrolling through the terminal.

b rc values memory open: Waiting for init : permission denied.

Any idea what is causing that?

Jcwscience avatar Nov 29 '21 21:11 Jcwscience

That is a call to open a shared memory segment under /db_rc_values_t. It is not required for a basic setup. It allows to overwrite RC values by other applications.

Run the application as root (required anyways to be able to send using monitor mode). If that does not fix the problem you must change the path in the code to something where you have write rights. /var/db_rc_values_t or /home/yourname/db_rc_values_t should do the trick.

seeul8er avatar Nov 30 '21 11:11 seeul8er

Ok now we’re getting somewhere! One more question, how do I access the telemetry feed from something like apm planner? Is it on a local port?

Jcwscience avatar Nov 30 '21 15:11 Jcwscience

You can receive telemetry via the proxy module on TCP port: 5760 - right click on the graphic to open in a new tab - then you can zoom in a bit so the text of the SVG gets rendered correctly. Telemetry is a bit untested in the latest releases.

seeul8er avatar Nov 30 '21 15:11 seeul8er