I want to use Simulink model of a drone to control the drone and eventually make it autonomous. for this, I want to establish communication between companion computer (Raspberry pi 3 Model B) and my flight controller (Dropix v2). I have connected Rpi3 to the laptop via ethernet. I am following this webpage: http://ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
I was able to install packages:
-sudo apt-get update #Update the list of packages in the software center
-sudo apt-get install screen python-wxgtk2.8 python-matplotlib python-opencv python-pip python-numpy python-dev libxml2-dev libxslt-dev
-sudo pip install future
But when I tried “sudo pip install pymavlink” the console of Rpi3 was getting stuck. I am totally unaware of what can be done. Any suggestions or solutions for this?
I tried that but I get following error:
pi@raspberrypi:~ $ python setup.py --build --install --user
python: can’t open file ‘setup.py’: [Errno 2] No such file or directory
I tried with the code you provided. But I get following error. I am not very good with linux and am unable to interpret it. You got any idea what should I do? Thanks in advance.