0

I'm using the PXfmini with the raspberrypi3 for a project and I need to use mavros and python code. My operative system is Frambuesa. I created the catkin workspace and I tested the c++ file takeoff_land_ and it works very well.

Now I need to test the python code, because I have to work with it, I’m using this example and I followed all the instructions to compile the statusleds.py :

https://github.com/erlerobot/ros_erle_statusled

But this is the error that the screen showed me:

this

How can I fix this?

I already tried this commands: Access GPIO pins without root. No access to /dev/mem. Try running as root!

thank you :)

flavia13
  • 33
  • 1
  • 3
  • 7

1 Answers1

2

Raspbian supports the /dev/gpiomem device which allows access to the GPIO without being the root user.

If /dev/gpiomem does not exist on your system you will need to run the Python script as the root user (with all the risks that entails).

joan
  • 71,852
  • 5
  • 76
  • 108