Move PX4 Guide source into /docs (#24490)

* Add vitepress tree

* Update existing workflows so they dont trigger on changes in the docs path

* Add nojekyll, package.json, LICENCE etc

* Add crowdin docs upload/download scripts

* Add docs flaw checker workflows

* Used docs prefix for docs workflows

* Crowdin obvious fixes

* ci: docs move to self hosted runner

runs on a beefy server for faster builds

Signed-off-by: Ramon Roche <mrpollo@gmail.com>

* ci: don't run build action for docs or ci changes

Signed-off-by: Ramon Roche <mrpollo@gmail.com>

* ci: update runners

Signed-off-by: Ramon Roche <mrpollo@gmail.com>

* Add docs/en

* Add docs assets and scripts

* Fix up editlinks to point to PX4 sources

* Download just the translations that are supported

* Add translation sources for zh, uk, ko

* Update latest tranlsation and uorb graphs

* update vitepress to latest

---------

Signed-off-by: Ramon Roche <mrpollo@gmail.com>
Co-authored-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
Hamish Willee
2025-03-13 16:08:27 +11:00
committed by GitHub
co-authored by Ramon Roche
parent 8e6d2ebe4a
commit 88d623bedb
5176 changed files with 558771 additions and 2 deletions
+63
View File
@@ -0,0 +1,63 @@
# 将RC接收器连接到基于PX4 Linux的自动驾驶仪
This topic shows how to setup a PX4 Linux-based autopilot to connect and use a [supported RC receiver](../getting_started/rc_transmitter_receiver.md) on any serial port.
对于S.Bus以外的遥控类型,您可以将接收器直接连接到串口,或者使用USB转TTY串行线(例如 PL2302 USB转串行TTL转换器)。
:::info
For an S.Bus receiver (or encoder - e.g. from Futaba, RadioLink, etc.) you will usually need to connect the receiver and device via a [signal inverter circuit](#signal_inverter_circuit), but otherwise the setup is the same.
:::
Then [Start the PX4 RC Driver](#start_driver) on the device, as shown below.
<a id="start_driver"></a>
## 启动驱动程序
To start the RC driver on a particular UART (e.g. in this case `/dev/ttyS2`):
```sh
linux_sbus start|stop|status -d &lt;device&gt; -c &lt;channel&gt;
```
For other driver usage information see: [rc_input](../modules/modules_driver.md#rc-input).
<a id="signal_inverter_circuit"></a>
## 信号反相器电路 (仅限S.Bus)
S.Bus is an _inverted_ UART communication signal.
虽然一些串行端口/飞行控制器可以读取反转的 UART 信号,但大多数需要在接收器和串行端口之间使用信号反相器电路来反转信号。
:::tip
This circuit is also required to read S.Bus remote control signals through the serial port or USB-to-TTY serial converter.
:::
本节介绍如何创建合适的电路。
### 所需组件
- 1x NPN 晶体管(例如 NPN S9014 TO92)
- 1x 10K 电阻
- 1x 1K 电阻
:::info
Any type/model of transistor can be used because the current drain is very low.
:::
### 电路图/连接
按如下所述(也显示在电路图中)连接组件:
- S.Bus 信号&rarr;1K 电阻&rarr;NPN 晶体管
- NPN晶体管发射极&rarr; GND
- 3.3VCC&&rarr; 10K电阻&rarr; NPN晶体管集电极&rarr; USB-to-TTY的RXD
- 5.0VCC&rarr;S.Bus VCC
- GND &rarr; S.Bus GND
![Signal inverter circuit diagram](../../assets/sbus/driver_sbus_signal_inverter_circuit_diagram.png)
下面的图片显示了面包板上的连接。
![Signal inverter breadboard](../../assets/sbus/driver_sbus_signal_inverter_breadboard.png)