Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jcwscience opened this issue Nov 26, 2021 · 8 comments
Open

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

Jcwscience opened this issue Nov 26, 2021 · 8 comments

Comments

@Jcwscience
Copy link

Jcwscience commented Nov 26, 2021

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!

@seeul8er
Copy link
Collaborator

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.

@Jcwscience
Copy link
Author

Jcwscience commented Nov 27, 2021

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?

@seeul8er
Copy link
Collaborator

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

@Jcwscience
Copy link
Author

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
Copy link
Author

@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?

@seeul8er
Copy link
Collaborator

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.

@Jcwscience
Copy link
Author

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?

@seeul8er
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants