<p>There are several ways to do it. Hard way is to have special electronics to shift from the flight controller input to motors to the raspberry pi, but is very complicated.</p>
<p>The other way is to change flying mode on the flight controller so the raspberry does it job while disabling rc inputs. Look further into PX4</p>

CC BY-SA 4.0
2022-10-10T17:16:12.560Z
the first option is too complicated :)

but the second option, I didn’t quite understand how exactly to correlate the flight mode to raspberry

How about receiving data on the raspberry, processing it and sending it to the flight controller. As soon as the raspberry receives some kind of flag, apply an algorithm that will calculate the drone control itself
Mike Arkl
CC BY-SA 4.0
2022-10-11T11:42:41.427Z
Check on PX4 the different flight modes. Px4 flight stack can already send the processed data on orientation, attitude, altitude for you to play with. Usually the raspberry pi control iut through the stabilized mode, so it is a controller wrap around and angle controller and you send orientation + thrust commands on the raspberry pi and the flight controller control the motor outputs based on the angle and thrust references. All communication is through RS232 on a Mavlink protocol
jdios
CC BY-SA 4.0
2022-10-12T19:49:56.610Z
thanks for the detailed answer)
Mike Arkl
CC BY-SA 4.0
2022-10-10T07:46:08.283Z
2022-10-10T07:46:08.283Z
jdios
<p>I have TBS Crossfire Micro TX, Nano RX and Raspberry Pi 4, I haven't bought a flight controller yet because I have a problem:</p>
<p>Until the drone receives a special command from the transmitter - I control the drone in manual mode, but as soon as it is received, the Raspberry algorithm should control the drone.
I don’t know how to implement it, in what order to connect it all, so I’m asking for your help :)</p>

<quadcopters><flight-controller><ardupilot><raspberry-pi>
Raspberry Pi 4 between flight controller and receiver
Mike Arkl
# Raspberry Pi 4 between flight controller and receiver

(Asked by: username_0 on 2022-10-07)

I have TBS Crossfire Micro TX, Nano RX and Raspberry Pi 4, I haven't bought a flight controller yet because I have a problem:

Until the drone receives a special command from the transmitter - I control the drone in manual mode, but as soon as it is received, the Raspberry algorithm should control the drone.
I don’t know how to implement it, in what order to connect it all, so I’m asking for your help :)

**Tags:** quadcopters, flight-controller, ardupilot, raspberry-pi

---

## 1 answers

### Answer by username_1 on 2022-10-10. Score: 0

There are several ways to do it. Hard way is to have special electronics to shift from the flight controller input to motors to the raspberry pi, but is very complicated.

The other way is to change flying mode on the flight controller so the raspberry does it job while disabling rc inputs. Look further into PX4

> **Comments:**
> **username_0**: the first option is too complicated :)  but the second option, I didn’t quite understand how exactly to correlate the flight mode to raspberry  How about receiving data on the raspberry, processing it and sending it to the flight controller. As soon as the raspberry receives some kind of flag, apply an algorithm that will calculate the drone control itself  
> **username_1**: Check on PX4 the different flight modes. Px4 flight stack can already send the processed data on orientation, attitude, altitude for you to play with. Usually the raspberry pi control iut through the stabilized mode, so it is a controller wrap around and angle controller and you send orientation + thrust commands on the raspberry pi and the flight controller control the motor outputs based on the angle and thrust references. All communication is through RS232 on a Mavlink protocol  
> **username_0**: thanks for the detailed answer)  

---

