mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
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:
@@ -0,0 +1,63 @@
|
||||
# Connecting an RC Receiver to a PX4 Linux-based Autopilot
|
||||
|
||||
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 이외의 RC 유형의 경우 수신기는 직렬 포트에 직접 연결하거나 USB-TTY 직렬 케이블(예: PL2302 USB-직렬 TTL 변환기)을 통하여 USB에 연결할 수 있습니다.
|
||||
|
||||
:::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
|
||||
rc_input start -d /dev/ttyS2
|
||||
```
|
||||
|
||||
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 신호선 → 1K 저항 → NPN 트랜지스터 베이스
|
||||
- NPN 트랜지스터 방출 → GND
|
||||
- 3.3VCC → 10K 저항 → NPN 트랜지스터 컬렉션 → USB-to-TTY rxd
|
||||
- 5.0VCC → S.Bus VCC
|
||||
- GND → S.Bus GND
|
||||
|
||||

|
||||
|
||||
아래 이미지에서는 빵판에서 연결된 모습을 보여줍니다.
|
||||
|
||||

|
||||
@@ -0,0 +1,51 @@
|
||||
# 움직임 감지(Motion Capture)기술을 활용한 비행 (VICON, Optitrack)
|
||||
|
||||
:::warning
|
||||
**WORK IN PROGRESS**
|
||||
|
||||
This topic shares significant overlap with [External Position Estimation (ROS)](../ros/external_position_estimation.md).
|
||||
:::
|
||||
|
||||
Indoor motion capture systems like VICON, NOKOV and Optitrack can be used to provide position and attitude data for vehicle state estimation, orto serve as ground-truth for analysis.
|
||||
The motion capture data can be used to update PX4's local position estimate relative to the local origin. Heading (yaw) from the motion capture system can also be optionally integrated by the attitude estimator.
|
||||
|
||||
Pose (position and orientation) data from the motion capture system is sent to the autopilot over MAVLink, using the [ATT_POS_MOCAP](https://mavlink.io/en/messages/common.html#ATT_POS_MOCAP) message. See the section below on coordinate frames for data representation conventions. The [mavros](../ros/mavros_installation.md) ROS-Mavlink interface has a default plugin to send this message. They can also be sent using pure C/C++ code and direct use of the MAVLink library.
|
||||
|
||||
## Computing Architecture
|
||||
|
||||
It is **highly recommended** that you send motion capture data via an **onboard** computer (e.g Raspberry Pi, ODroid, etc.) for reliable communications. The onboard computer can be connected to the motion capture computer through WiFi, which offers reliable, high-bandwidth connection.
|
||||
|
||||
Most standard telemetry links like 3DR/SiK radios are **not** suitable for high-bandwidth motion capture applications.
|
||||
|
||||
## Coordinate Frames
|
||||
|
||||
This section shows how to setup the system with the proper reference frames. There are various representations but we will use two of them: ENU and NED.
|
||||
|
||||
- ENU is a ground-fixed frame where **X** axis points East, **Y** points North and **Z** up. The robot/vehicle body frame is **X** towards the front, **Z** up and **Y** towards the left.
|
||||
- NED has **X** towards North, **Y** East and **Z** down. The robot/vehicle body frame has **X** towards the front, **Z** down and **Y** accordingly.
|
||||
|
||||
Frames are shown in the image below. NED on the left, ENU on the right:
|
||||
|
||||

|
||||
|
||||
With the external heading estimation, however, magnetic North is ignored and faked with a vector corresponding to world _x_ axis (which can be placed freely at mocap calibration); yaw angle will be given respect to local _x_.
|
||||
|
||||
:::warning
|
||||
When creating the rigid body in the motion capture software, remember to first align the robot with the world **X** axis otherwise yaw estimation will have an initial offset.
|
||||
:::
|
||||
|
||||
## Estimator Choice
|
||||
|
||||
EKF2 is recommended for GPS-enabled systems (LPE is deprecated, and hence no longer supported or maintained).
|
||||
The Q-Estimator is recommended if you don't have GPS, as it works without a magnetometer or barometer.
|
||||
|
||||
See [Switching State Estimators](../advanced/switching_state_estimators.md) for more information.
|
||||
|
||||
### EKF2
|
||||
|
||||
The ROS topic for motion cap `mocap_pose_estimate` for mocap systems and `vision_pose_estimate` for vision.
|
||||
Check [mavros_extras](http://wiki.ros.org/mavros_extras) for further info.
|
||||
|
||||
## 시험
|
||||
|
||||
## 문제 해결
|
||||
Reference in New Issue
Block a user