Skip to content

Commit fb8ce00

Browse files
authored
New Crowdin updates (#622)
* New translations common.md (Korean) * New translations common.md (Chinese Simplified) * New translations common.md (Korean) * New translations common.md (Chinese Simplified) * New translations standard.md (Korean) * New translations standard.md (Chinese Simplified) * New translations development.md (Korean) * New translations all.md (Korean) * New translations development.md (Chinese Simplified) * New translations all.md (Chinese Simplified) * New translations dialects.md (Korean) * New translations dialects.md (Chinese Simplified) * New translations common.md (Korean) * New translations common.md (Chinese Simplified) * New translations development.md (Korean) * New translations all.md (Korean) * New translations development.md (Chinese Simplified) * New translations all.md (Chinese Simplified) * New translations common.md (Korean) * New translations common.md (Chinese Simplified) * New translations minimal.md (Korean) * New translations minimal.md (Chinese Simplified) * New translations common.md (Korean) * New translations common.md (Chinese Simplified) * New translations development.md (Korean) * New translations all.md (Korean) * New translations development.md (Chinese Simplified) * New translations all.md (Chinese Simplified) * New translations uavionix.md (Korean) * New translations uavionix.md (Chinese Simplified) * New translations cubepilot.md (Korean) * New translations cubepilot.md (Chinese Simplified) * New translations storm32.md (Korean) * New translations storm32.md (Chinese Simplified) * New translations ardupilotmega.md (Korean) * New translations avssuas.md (Korean) * New translations ardupilotmega.md (Chinese Simplified) * New translations avssuas.md (Chinese Simplified) * New translations matrixpilot.md (Korean) * New translations paparazzi.md (Korean) * New translations python_array_test.md (Korean) * New translations ualberta.md (Korean) * New translations asluav.md (Korean) * New translations marsh.md (Korean) * New translations matrixpilot.md (Chinese Simplified) * New translations paparazzi.md (Chinese Simplified) * New translations python_array_test.md (Chinese Simplified) * New translations ualberta.md (Chinese Simplified) * New translations asluav.md (Chinese Simplified) * New translations marsh.md (Chinese Simplified) * New translations common.md (Korean) * New translations common.md (Chinese Simplified) * New translations example_c_udp.md (Korean) * New translations example_c_udp.md (Chinese Simplified) * New translations installation.md (Korean) * New translations installation.md (Chinese Simplified) * New translations manual_control.md (Korean) * New translations manual_control.md (Chinese Simplified) * New translations development.md (Korean) * New translations all.md (Korean) * New translations development.md (Chinese Simplified) * New translations all.md (Chinese Simplified)
1 parent 23f3269 commit fb8ce00

40 files changed

Lines changed: 688 additions & 368 deletions

ko/getting_started/installation.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ To install the MAVLink toolchain:
2525

2626
- **Windows:** Download from [Python for Windows](https://www.python.org/downloads/)
2727
- **Ubuntu Linux** Make sure Python and Pip are both installed:
28-
```
29-
sudo apt install python3-tk
30-
```
28+
```
29+
sudo apt install python3-tk
30+
```
3131
3232
2. Clone the official [mavlink repo](https://github.com/mavlink/mavlink) or your fork with your custom dialect:
3333
3434
```
3535
git clone https://github.com/mavlink/mavlink.git --recursive
36+
cd mavlink
3637
```
3738
3839
3. Install the required packages:

ko/mavgen_c/example_c_udp.md

Lines changed: 38 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,68 @@
11
# MAVLink C UDP Example
22

3-
The [MAVLink UDP Example](https://github.com/mavlink/mavlink/tree/master/examples/c) is a simple C example that sends some data to _QGroundControl_ using MAVLink over UDP.
4-
_QGroundControl_ responds with heartbeats and other messages, which are then printed by this program.
3+
The [MAVLink UDP Example](https://github.com/mavlink/mavlink/tree/master/examples/c) is a simple C example that sends and receives MAVLink HEARTBEATS over UDP.
54

65
:::info
76
The example should work on any Unix-like system (Linux, MacOS, BSD, etc.).
8-
These instructions were tested on a clean _Ubuntu LTS 20.04_ installation using the default version of _gcc_ (9.3.0).
7+
These instructions were tested on a _Ubuntu LTS 22.04_ installation with either PX4 or ArduPilot dependencies installed (such as cmake).
98
:::
109

1110
## Building/Running the Example
1211

1312
The following instructions show how to build and run the example.
1413

15-
1. [Install MAVLink](../getting_started/installation.md) and [generate](../getting_started/generate_libraries.md) the MAVLink 2.0 libraries into the **mavlink/include** directory.
16-
For example, to generate the headers for common.xml you could use the command line:
14+
1. Clone the [mavlink/mavlink](https://github.com/mavlink/mavlink/) repository
1715

18-
```sh
19-
python3 -m pymavlink.tools.mavgen --lang=C --wire-protocol=2.0 --output=./include/ message_definitions/v1.0/common.xml
20-
```
21-
22-
::: tip
23-
Alternatively you can clone the [mavlink/mavlink](https://github.com/mavlink/mavlink/) repository and [Download prebuilt headers](../index.md#prebuilt_libraries) to the same location.
24-
:::
25-
26-
::: info
27-
The example will not work with MAVLink 1 because it uses a message that includes extension fields which do not exist in MAVLink 1 (`SYS_STATUS`).
28-
:::
16+
2. Open a terminal in the repository root.
2917

30-
::: info
31-
You can put/generate the library wherever you like, but the build command below assumes they are located in directory named **include** below the MAVLink root directory.
32-
:::
18+
3. Use `cmake` to install MAVLink locally:
3319

34-
2. Open a terminal and navigate to [examples/c](https://github.com/mavlink/mavlink/tree/master/examples/c)
20+
```sh
21+
cmake -Bbuild -H. -DCMAKE_INSTALL_PREFIX=install
22+
cmake --build build --target install
23+
```
3524

36-
3. Compile with GCC using the following command:
25+
4. Navigate to [examples/c](https://github.com/mavlink/mavlink/tree/master/examples/c)
3726

3827
```sh
39-
gcc -std=c99 -I ../../include/common -o mavlink_udp udp_example.c
28+
cd examples/c
4029
```
4130

42-
::: info
43-
The MAVLink header directory must be added to the include path.
44-
The path here assumes you are building the code from the example directory, and that have installed the headers in **mavlink/include**.
45-
:::
46-
47-
4. Run the executable from the terminal:
31+
5. Use `cmake` to compile and build the example:
4832

49-
```bash
50-
./mavlink_udp
33+
```sh
34+
cmake -Bbuild -H. -DCMAKE_PREFIX_PATH=$(pwd)/../../install
35+
cmake --build build
5136
```
5237

53-
By default, the example will listen for data on the localhost IP address, port 14551.
54-
You can specify another IP address as a command line argument (use `./mavlink_udp --help` to see usage).
38+
6. Run the executable from the terminal:
5539

56-
5. Open _QGroundControl_ on the same machine.
40+
```sh
41+
./build/udp_example
42+
```
5743

58-
_QGroundControl_ immediately starts broadcasting its `HEARTBEAT` on port 14551.
44+
By default, the example will listen for data on the localhost IP address, port 14550.
5945

60-
::: info
61-
_QGroundControl_ returns data, but will not actually "connect" to the example (it will continue to display the message _Waiting for Vehicle Connection_).
62-
:::
46+
7. Open another terminal on the same machine and start either PX4 or ArduPilot.
47+
These publish to port 14550 on localhost by default.
6348

64-
6. The example should start displaying the received data in the terminal:
49+
8. The example should start displaying messages about sent and received HEARTBEAT messages in the terminal.
50+
The following output is displayed if you connect to PX4:
6551

6652
```sh
67-
~/github/mavlink/examples/c$ ./mavlink_udp
68-
Bytes Received: 17
69-
Datagram: fe 09 00 ff 00 00 00 00 00 00 06 08 c0 04 03 19 87
70-
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
71-
72-
Bytes Received: 17
73-
Datagram: fe 09 01 ff 00 00 00 00 00 00 06 08 c0 04 03 f3 f9
74-
Received packet: SYS: 255, COMP: 0, LEN: 9, MSG ID: 0
75-
53+
~/github/mavlink/mavlink/examples/c$ ./build/udp_example
54+
55+
Sent heartbeat
56+
Got heartbeat from PX4 autopilot
57+
Sent heartbeat
58+
Got heartbeat from PX4 autopilot
59+
Sent heartbeat
60+
Got heartbeat from PX4 autopilot
61+
Sent heartbeat
62+
Got heartbeat from PX4 autopilot
63+
Sent heartbeat
64+
Got heartbeat from PX4 autopilot
7665
...
7766
```
67+
68+
Note that the build and installation instructions are from [examples/c/README.md](https://github.com/mavlink/mavlink/blob/master/examples/c/README.md).

ko/messages/ASLUAV.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ span.warning {
3636
| Type | Defined | Included |
3737
| -------------------------- | ------- | -------- |
3838
| [Messages](#messages) | 17 | 229 |
39-
| [Enums](#enumerated-types) | 2 | 148 |
39+
| [Enums](#enumerated-types) | 2 | 149 |
4040
| [Commands](#mav_commands) | 167 | 0 |
4141

4242
The following sections list all entities in the dialect (both included and defined in this file).

ko/messages/AVSSUAS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ span.warning {
4040
| Type | Defined | Included |
4141
| -------------------------- | ------- | -------- |
4242
| [Messages](#messages) | 4 | 229 |
43-
| [Enums](#enumerated-types) | 3 | 148 |
43+
| [Enums](#enumerated-types) | 3 | 149 |
4444
| [Commands](#mav_commands) | 172 | 0 |
4545

4646
The following sections list all entities in the dialect (both included and defined in this file).

ko/messages/all.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ span.warning {
6161

6262
| Type | Defined | Included |
6363
| -------------------------- | ------- | -------- |
64-
| [Messages](#messages) | 0 | 381 |
65-
| [Enums](#enumerated-types) | 0 | 244 |
66-
| [Commands](#mav_commands) | 219 | 0 |
64+
| [Messages](#messages) | 0 | 382 |
65+
| [Enums](#enumerated-types) | 0 | 247 |
66+
| [Commands](#mav_commands) | 222 | 0 |
6767

6868
The following sections list all entities in the dialect (both included and defined in this file).
6969

ko/messages/ardupilotmega.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ span.warning {
4545
| Type | Defined | Included |
4646
| -------------------------- | ------- | -------- |
4747
| [Messages](#messages) | 72 | 247 |
48-
| [Enums](#enumerated-types) | 46 | 164 |
48+
| [Enums](#enumerated-types) | 46 | 165 |
4949
| [Commands](#mav_commands) | 198 | 0 |
5050

5151
The following sections list all entities in the dialect (both included and defined in this file).

0 commit comments

Comments
 (0)