Quantcast
Viewing all articles
Browse latest Browse all 45783

Adding RPi GPIO switch functionality to MAVProxy

@JAR4x4 wrote:

Hello,

I´m new to Python and programming in general, but I´m learning.

Currently I´m working on a project with a standalone GCS unit based on two Raspberry Pi´s in a Peli case together with two 7" Raspberry touchscreens. One for the telemetry and one for a video downlink. (I´m using a RPi with Navio2 as flightcontroller).

I´ve successfully got the "telemetry" RPi with a custom USB joystick interface up and running with MavProxy and communicating with my Navio2. Now I´m studying the MavProxy code to find a way to issue some predefined terminal commands like "arm throttle" "rtl" etc with switches connected to the RPi GPIO or with my USB joystick interface by mapping the buttons to trigger a standalone script to do the tasks I want.

Basically I want to trigger the mavproxy_arm.py and mavproxy_mode.py with switches connected to the RPi.

I´m stuck. Can anyone point me in the right direction?

Best regards
Alex from Norway

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 45783

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>