Skip to content

Commit 020d61f

Browse files
author
daniel.chen
committed
update to 1.0.5
1 parent d999970 commit 020d61f

File tree

2,047 files changed

+760656
-21315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,047 files changed

+760656
-21315
lines changed

README.md

+55
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,61 @@ sh generate.sh
116116
1. Run the above script
117117
2. Get the library you want, the header files are stored in the dji-flightrecord-kit/source/FlightRecordStandardizationCpp/parser/DJIFRProtoParser.hpp
118118

119+
## Error Codes
120+
121+
If an error occurs during the flight record files parsing, you can solve the problem according to the returned value. The table below shows returned values and error descriptions. Returned value 0 indicates successful parsing.
122+
123+
<table align="center">
124+
<thead>
125+
<tr>
126+
<th>Error Code</th>
127+
<th>Error Description</th>
128+
</tr>
129+
</thead>
130+
<tbody>
131+
<tr>
132+
<td>1</td>
133+
<td>Illegal input parameter</td>
134+
</tr>
135+
<tr>
136+
<td>2</td>
137+
<td>Illegal flight record file content</td>
138+
</tr>
139+
<tr>
140+
<td>3</td>
141+
<td>Unsupported flight record file version</td>
142+
</tr>
143+
<tr>
144+
<td>4</td>
145+
<td>The flight record parser does not exist</td>
146+
</tr>
147+
<tr>
148+
<td>5</td>
149+
<td>The flight record file includes unsupported functions</td>
150+
</tr>
151+
<tr>
152+
<td>6</td>
153+
<td>Parsing failed due to message loss</td>
154+
</tr>
155+
<tr>
156+
<td>7</td>
157+
<td>File operation failed</td>
158+
</tr>
159+
<tr>
160+
<td>8</td>
161+
<td>Invalid data. The file might be modified </td>
162+
</tr>
163+
<tr>
164+
<td>9</td>
165+
<td>Data filling failed. Unsupported data filling types</td>
166+
</tr>
167+
<tr>
168+
<td>255</td>
169+
<td>Unknown error</td>
170+
</tr>
171+
</tbody>
172+
</table>
173+
119174
## Credits
120175

121176
FlightRecord is owned and maintained by [DJI SDK](https://developer.dji.com).

README_cn.md

+56
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,62 @@ sh generate.sh
118118
1. 运行上面的脚本
119119
2. 获取你需要的库,header 文件存储在 dji-flightrecord-kit/source/FlightRecordStandardizationCpp/parser/DJIFRProtoParser.hpp 中
120120

121+
## 错误定位
122+
123+
若您在解析飞行记录文件时出现报错,可以根据返回值定位问题。下表为返回值与问题原因的对应。返回值为 0 时,表示解析成功。
124+
125+
<table align="center">
126+
<thead>
127+
<tr>
128+
<th>错误码</th>
129+
<th>错误描述</th>
130+
</tr>
131+
</thead>
132+
<tbody>
133+
<tr>
134+
<td>1</td>
135+
<td>输入参数非法</td>
136+
</tr>
137+
<tr>
138+
<td>2</td>
139+
<td>飞行记录文件内容非法</td>
140+
</tr>
141+
<tr>
142+
<td>3</td>
143+
<td>当前飞行记录文件版本不支持</td>
144+
</tr>
145+
<tr>
146+
<td>4</td>
147+
<td>飞行记录解析器不存在</td>
148+
</tr>
149+
<tr>
150+
<td>5</td>
151+
<td>飞行记录文件中部分功能不支持</td>
152+
</tr>
153+
<tr>
154+
<td>6</td>
155+
<td>部分消息丢失导致解析失败</td>
156+
</tr>
157+
<tr>
158+
<td>7</td>
159+
<td>文件操作失败</td>
160+
</tr>
161+
<tr>
162+
<td>8</td>
163+
<td>文件疑似被篡改,数据有问题</td>
164+
</tr>
165+
<tr>
166+
<td>9</td>
167+
<td>数据填充失败</td>
168+
</tr>
169+
<tr>
170+
<td>255</td>
171+
<td>其他所有未知错误</td>
172+
</tr>
173+
</tbody>
174+
</table>
175+
176+
121177
## 主要贡献者
122178

123179
FlightRecord 由 [DJI SDK](https://developer.dji.com) 拥有和维护。

0 commit comments

Comments
 (0)