How to guide: Mission Planner on Raspberry Pi

1 Like

discord is the worst way to share this image as we cant even enter the chat as it bugs all the time and the download section not visible.

Wrong topic maybe?
Did you mean the windows 10 image?

yes the win 10 img cant be found

i am trying to go from raspian to win 10 as we feel this linux version is not reliable . not as the pc version we been using.
we are trying to make mission planner live on rspi4 however its not really fast , the joystick does not work . ( maybe a kernel issue) and when we try to connect to model it crash and closes from the mono run
any idea why?

I never experienced the problems you are mentioning and feel like, Windows 10 would be less reliable and slower on a raspberry pi4 than raspbian.

Did you make sure to follow every single step in my guide? Did you start with a clean raspberry installation?

Joy sticks are at the moment not supported due to directX not being supported on raspberry.

Please refer to Mission Planner on Raspberry Pi 4, no Luck for further help.

Cheers

Edit: surely, mission planner on a raspberry is not quite as fast as it could or should be on a 64bit system. However, we haven’t found a promising solution for this. It’s by no means unusable however.

The issue is known then. We are switching to qgc. And also having problems with Debian or Raspian. Version. I think v18.04 Debian will work however the rpi4b is a 1.5ghz quad core 64bit ARM CPU. We would like to do a clean install on Linux that works. So far we are not able to run the application form terminal. And can’t seems be allowed to run to finish the steps. It “Vers error”

joystick support coming soon

2 Likes

Being an absolute noob to Raspberry Pi and Linux in general installing Mission Planner seemed like a great place to start. I am pleased to say using this guide I was able to install Mission Planner 1.3.74 on Raspberry OS, Ubuntu 20.10 Desktop for Pi (Both on a Pi 4 4gb) and on Ubuntu 20.10 (On an old iMac). All three installations work, except for one problem: I can not get either of the Pi installs to actually connect to a flight controller. The old iMac will connect, but that’s not what I want to haul to the field. On Ubuntu I will get a connection error, and on Raspberry OS Mission Planner will crash.

Any hints or things to look for? Thanks!

How are you connecting to the flight controller? USB, Bluetooth, …

So far, just direct USB. I will be trying Wi-Fi later but I want to get this sorted first.

so looks like there is a way to make MP run without changing the opengl settings

LIBGL_ALWAYS_SOFTWARE=1 mono /home/pi/MissionPlanner-latest/MissionPlanner.exe
1 Like

Thanks! I’ll give that a shot next chance I get. I’ll let you know what happens.

Sorry I can not help here, I also used a RPI 4 (8G but with 32 bit OS) and installed MP 1.3.74 and it connects with USB to many different brand FCs running ArduPilo, ArduRover, ArduCopter. If the MP is crashing on RPI maybe try to get a log?
I would just redo the installation again and look for some suspect messages during that process…

Due to some bumbling of my own with another project my raspberry image was cleared, however I still have the Ubuntu Pi image running. I tried the command posted by @Michael_Oborne and I didn’t have any luck with that however I noticed in terminal that the Pi was recognizing the Matek FC.

I came across the instructions for installation of QGC onto Ubuntu and it mentions issues with the serial modem manager. I ran the suggested commands:

sudo usermod -a -G dialout $USER
sudo apt-get remove modemmanager -y
sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-gl -y

That seems to have everything working. I’ve now been able to connect a Matek F405 Arducopter build by USB to a Raspberry Pi Running Ubuntu 20.10 Pi Desktop.

Are you running Ubuntu or raspberry OS on the Pi?
There are cases where it is needed to add the user pi to the dialout group. However Normally it’s not necessary for a USB connection.

In any case: on raspberry OS it should be sufficient to just run sudo usermod -a -G dialout $USER where $user=pi

The code michael gave us does not have to so with your issue. It’s just a minor update to my guide. (Thanka for that information by the way michael)

Cheers

I misunderstood his comment then. It didn’t hurt anything for me.

I’m currently running Ubuntu 20.10 Pi Desktop on the Pi.

I tried earlier with Raspberry OS, however that image was wiped out and I haven’t rebuilt it to try Mission Planner yet. So far it seems to be working well on Ubuntu so I may just run with that for a while.

Thank you @Holly918 for your instructions. I know you meant them for Raspberry OS, they were enough to get me going on Ubuntu. (Okay, I got a little mixed up on the OpenGL part but that’s my problem :slight_smile:)

1 Like

Massive thanks to Michael and Bastiaan here.

So I can report Pi4 8GB works well, I followed the document with the exception of .so file addition, running 1.3.7.34 version.

OpenGL still needed to be disabled.

1 Like

Not sure this is good place to post this

Have Raspberry PI OS on a PI 4B (8G), followed the instructions here. It works but every time I start MP it launches a small window and halts, closing the window will make MP resume and launch.
The message in the window is:
Please upgrade your mono version to 6+ https://www.mono-project.com/download/stable/


When I try upgrade it with command: sudo apt install mono-devel
it responds back:
mono-devel is already the newest version (5.18.0.240+dfsg-3).

But over at mono-project.com they say latest version is 6… something, not 5…

Any idea how to upgrade mono?
I hope an upgrade will also resolve some issues with some windows not display correctly in MP.

just follow the instructions on the mono site for raspbian.