I want to connect a Pixhawk 4 (It's a flight controller) to a Raspberry Pi 3. Therefor I purchased this FTDI USB adapter. Its pinout is the following:
1 DTR
2 RX
3 TX
4 VCC
5 CTS
6 GND
The Pixhawk has a output Port called TELEM 2, which is supposed to be used for this purpose as described here. Its pins are the following:
1 +5V
2 Tx
3 Rx
4 CTS
5 RTS
6 GND
All the pinx fit together except for the Pixhawk's RTS pin and the breakoutboard's DTR. So I was wondering, if I can just connect the breakoutboard's DTR to the Pixhawk's CTS?
The breakout board also has an actual RTS pin, but there is no header soldered onto that pin and I don't have a header nor a soldering iron available here.
EDIT:
As it was pointed out to me by @justme that it depends on how the software handles the handshakes, I would like to add, that the software that is most important to me in this context is the Open Source project MAVSDK. In the github repository in the file src/core/serial_connection.cpp
I found the following lines of code:
if (_flow_control) {
dcb.fOutxCtsFlow = TRUE;
dcb.fDtrControl = DTR_CONTROL_HANDSHAKE;
dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
} else {
dcb.fDtrControl = DTR_CONTROL_DISABLE;
dcb.fRtsControl = RTS_CONTROL_DISABLE;
}
So I guess in this case the Handshake can be deactivated by setting _flow_control
to false.
What do I need to look for in the source code, if I want to know, if my Pin connections will "not work at all, or it works poorly, or it just works"?