mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 12:30:27 +08:00
New Crowdin translations - ko
This commit is contained in:
committed by
Hamish Willee
parent
a19d6e4f6e
commit
bd17df8c29
@@ -71,42 +71,42 @@ Explanations and requirements:
|
|||||||
- `/* EVENT`: This tag indicates that a comment defines metadata for the following event.
|
- `/* EVENT`: This tag indicates that a comment defines metadata for the following event.
|
||||||
|
|
||||||
- **event_name**: the event name (`events::ID(event_name)`).
|
- **event_name**: the event name (`events::ID(event_name)`).
|
||||||
- must be unique within the whole source code of PX4.
|
- must be unique within the whole source code of PX4.
|
||||||
As a general convention, prefix it with the module name, or the source file for larger modules.
|
As a general convention, prefix it with the module name, or the source file for larger modules.
|
||||||
- must be a valid variable name, i.e. must not contain spaces, colons, etc.
|
- must be a valid variable name, i.e. must not contain spaces, colons, etc.
|
||||||
- from that name, a 24 bit event ID is derived using a hash function.
|
- from that name, a 24 bit event ID is derived using a hash function.
|
||||||
This means as long as the event name stays the same, so will the ID.
|
This means as long as the event name stays the same, so will the ID.
|
||||||
|
|
||||||
- **Log Level**:
|
- **Log Level**:
|
||||||
|
|
||||||
- valid log levels are the same as used in the MAVLink [MAV_SEVERITY](https://mavlink.io/en/messages/common.html#MAV_SEVERITY) enum.
|
- valid log levels are the same as used in the MAVLink [MAV_SEVERITY](https://mavlink.io/en/messages/common.html#MAV_SEVERITY) enum.
|
||||||
In order of descending importance these are:
|
In order of descending importance these are:
|
||||||
|
|
||||||
```plain
|
```plain
|
||||||
Emergency,
|
Emergency,
|
||||||
Alert,
|
Alert,
|
||||||
Critical,
|
Critical,
|
||||||
Error,
|
Error,
|
||||||
Warning,
|
Warning,
|
||||||
Notice,
|
Notice,
|
||||||
Info,
|
Info,
|
||||||
Debug,
|
Debug,
|
||||||
Disabled,
|
Disabled,
|
||||||
```
|
```
|
||||||
|
|
||||||
- Above we specify a separate external and internal log level, which are the levels displayed to GCS users and in the log file, respectively: `{events::Log::Error, events::LogInternal::Info}`.
|
- Above we specify a separate external and internal log level, which are the levels displayed to GCS users and in the log file, respectively: `{events::Log::Error, events::LogInternal::Info}`.
|
||||||
For the majority of cases you can pass a single log level, and this will be used for both exernal and internal cases.
|
For the majority of cases you can pass a single log level, and this will be used for both exernal and internal cases.
|
||||||
There are cases it makes sense to have two different log levels.
|
There are cases it makes sense to have two different log levels.
|
||||||
For example an RTL failsafe action: the user should see it as Warning/Error, whereas in the log, it is an expected system response, so it can be set to `Info`.
|
For example an RTL failsafe action: the user should see it as Warning/Error, whereas in the log, it is an expected system response, so it can be set to `Info`.
|
||||||
|
|
||||||
- **Event Message**:
|
- **Event Message**:
|
||||||
- Single-line, short message of the event.
|
- Single-line, short message of the event.
|
||||||
It may contain template placeholders for arguments (e.g. `{1}`). For more information see below.
|
It may contain template placeholders for arguments (e.g. `{1}`). For more information see below.
|
||||||
|
|
||||||
- **Event Description**:
|
- **Event Description**:
|
||||||
- Detailed, optional event description.
|
- Detailed, optional event description.
|
||||||
- Can be multiple lines/paragraphs.
|
- Can be multiple lines/paragraphs.
|
||||||
- It may contain template placeholders for arguments (e.g. `{2}`) and supported tags (see below)
|
- It may contain template placeholders for arguments (e.g. `{2}`) and supported tags (see below)
|
||||||
|
|
||||||
#### Arguments and Enums
|
#### Arguments and Enums
|
||||||
|
|
||||||
@@ -125,35 +125,35 @@ Text format for event message description:
|
|||||||
|
|
||||||
- characters can be escaped with \\
|
- characters can be escaped with \\
|
||||||
|
|
||||||
These have to be escaped: '\\\\', '\\<', '\\{'.
|
These have to be escaped: '\\\\', '\\<', '\\{'.
|
||||||
|
|
||||||
- supported tags:
|
- supported tags:
|
||||||
|
|
||||||
- Profiles: `<profile name="[!]NAME">CONTENT</profile>`
|
- Profiles: `<profile name="[!]NAME">CONTENT</profile>`
|
||||||
|
|
||||||
`CONTENT` will only be shown if the name matches the configured profile.
|
`CONTENT` will only be shown if the name matches the configured profile.
|
||||||
This can be used for example to hide developer information from end-users.
|
This can be used for example to hide developer information from end-users.
|
||||||
|
|
||||||
- URLs: `<a [href="URL"]>CONTENT</a>`.
|
- URLs: `<a [href="URL"]>CONTENT</a>`.
|
||||||
If `href` is not set, use `CONTENT` as `URL` (i.e.`<a>https://docs.px4.io</a>` is interpreted as `<a href="https://docs.px4.io">https://docs.px4.io</a>`)
|
If `href` is not set, use `CONTENT` as `URL` (i.e.`<a>https://docs.px4.io</a>` is interpreted as `<a href="https://docs.px4.io">https://docs.px4.io</a>`)
|
||||||
|
|
||||||
- Parameters: `<param>PARAM_NAME</param>`
|
- Parameters: `<param>PARAM_NAME</param>`
|
||||||
|
|
||||||
- no nested tags of the same type are allowed
|
- no nested tags of the same type are allowed
|
||||||
|
|
||||||
- arguments: template placeholders that follow python syntax, with 1-based indexing (instead of 0)
|
- arguments: template placeholders that follow python syntax, with 1-based indexing (instead of 0)
|
||||||
|
|
||||||
- general form: `{ARG_IDX[:.NUM_DECIMAL_DIGITS][UNIT]}`
|
- general form: `{ARG_IDX[:.NUM_DECIMAL_DIGITS][UNIT]}`
|
||||||
|
|
||||||
UNIT:
|
UNIT:
|
||||||
|
|
||||||
- m: horizontal distance in meters
|
- m: horizontal distance in meters
|
||||||
- m_v: vertical distance in meters
|
- m_v: vertical distance in meters
|
||||||
- m^2: area in m^2
|
- m^2: area in m^2
|
||||||
- m/s: speed in m/s
|
- m/s: speed in m/s
|
||||||
- C: temperature in degrees celsius
|
- C: temperature in degrees celsius
|
||||||
|
|
||||||
- `NUM_DECIMAL_DIGITS` only makes sense for real number arguments.
|
- `NUM_DECIMAL_DIGITS` only makes sense for real number arguments.
|
||||||
|
|
||||||
## 로깅
|
## 로깅
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user