Servers by jDrones

New Companion Computer software: Rpanion-server

Ok, fixed the Ras Pi Camera issue ( You’ll need to do a git pull in the ~/Rpanion-server folder on the Pi to get the update.

Raspicam video streaming is now working. A great feature for the future would be camera image rotation, someone :wink: might have the camera mounted upside down…

Sure - I’ve now added that in :slight_smile:

Hi Stephen, really fast work! The rotation dropdown is there after a git pull, but rotation only works for the usb cam, not the raspicam.

Oops … fixed now!

Thanks for the finding these issues too :slight_smile:

No problem! I really like that you focus on the key elements for a companion computer. I did not have much luck with the other solutions available. They either try to do too much or are more or less abandonware.

Yes, it is working. I am now trying to install rpanion-server in a Lubuntu VM running on Windows 10 for my bigger rover.

Hi Stephen,

I tested some more and noticed: the video streaming seems to use the same low bitrate for all resolutions. So using a higher resolution does not translate to a better picture. Is it possible to add a dropdown selection for the bitrate?

Sure - I’ve now added that in.

Ok. That was quick! I will try to test it as quickly!

Hi Stephen, I did a git pull and now I get:

./src/basePage.jsModule not found: Can't resolve 'react-spinners/ClipLoader' in '/home/pi/Rpanion-server/src'

Sorry, slight case off dumb… I just installed react-spinners and it is compiling again.
And everything works. Great work, thank you!

I found another issue. I am now running Rpanion-server on a RPi 3B+. The wired adapter and connections are seperated from the wireless adapters and connections, but now I have two wireless adapters. There seems to be no way to create a connection for a specific adapter, or to deactivate an adapter completly. I would like to use the RPi onboard adapter as a client in my home wifi and the Alfa adapter as an AP.

And in case anybody needs it, here is a working MissionPlanner 1.3.70 GStreamer Pipeline for Rpanion:

rtspsrc location=rtsp://Rpanion-IP:8554/video latency=0 ! application/x-rtp ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink

Adding a queue seems to reduce latency:

rtspsrc location=rtsp://Rpanion-IP:8554/video latency=0 ! queue ! application/x-rtp ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink

I’ve now added a feature to map a connection to a specific adapter.

Added button to deactivate current connection on adapter.

I’ve also fixed a few bugs for when a user has multiple Wifi adapters.

Thanks! I’ve added that to the video page.

Thank you! You are really quick!
I pulled the changes and everything is working, except the wifi security. As I wrote above I use the onboard wifi to connect to my home network and the Alfa AWUS036ACH as an AP. I enter a key and select WPA-PSK for the AP, but the wifi network is created as an open network. The IP I enter also always gets reverted to
Update: I deleted the network, created it again, network open…, deactivated it, changed the IP, reactivated it and now it is secured and uses the IP I entered.
But Windows refuses to connect to the network again.
Perhaps it is a power issue on the RPi
side. I will test with lipo power again.

That’s a bug. Good find though - it took some time to figure out the cause. Basically, the Pi was activating the network before Rpanion-server could add in the security and IP settings for the network.

It’s now been fixed, so give it a go.

I’ve been unable to replicate this issue. Are you able to test with a few different Windows laptops?

And for everyone - I’ve now added logging to Rpanion-server. You’ll find the log in ./Rpanion-server/logs/app.log. This should help with reporting any bugs or issues.

Hi Stephen, everything seems to be working now. Windows does not mind connecting to the rovers AP anymore and the client wifi also connects.

Hi Stephen, I pulled the latest changes and sadly nothing is working anymore. All I get is the menu and the page title with a turning circle for the flightcontroller, network and video page.
Flight Logs is showing two buttons and a checkbox above an empty table. Clicking “enable logging”
results in the following error message:
“Error setting logging: SyntaxError: Unexpected token P in JSON at position 0”.

@count74: I’ve just tested it on my Raspberry Pi and wasn’t able to replicate your issue. Did you do a npm install and npm run build after pulling in the new changes?

Rpanion-server now keeps a logfile. It’s at ./logs/app.log. Could I get a copy of that file? It may show where the error is occuring.

If you’re running rpanion-server as a service, you may need to re-copy the service file:
sudo cp rpanion.service /etc/systemd/system

This is pretty awesome! Need to get zerotier support and USB modems in here (huawei hi-link lte usb cards) and we are really off to the races! Amazing work! Definitely going to try.

Hi Stephen,

I did a complete reinstall with your image.
Rpanion is running again, but telemetry is really slow. Sometimes MissionPlanner connects, but the status screen only gets updates every 5s and the parameters never load completely. At other times connect fails after a few seconds.
Qgroundcontrol announces connection lost, connection regained every few seconds.
Baud rates are matching, I enabled/disabled logging, removed all telemetry outputs and added only one, but so far nothing helped. Here is the app.log:
app.log (75.0 KB)

Three reboots later and it is suddenly working, without changing anything…

Servers by jDrones