forked from svpcom/wfb-ng-osd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosdconfig.h
354 lines (297 loc) · 8.54 KB
/
osdconfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
#ifndef __OSD_CONFIG_H
#define __OSD_CONFIG_H
#include <stdint.h>
typedef struct
{
uint16_t Arm_en;
uint16_t Arm_panel;
uint16_t Arm_posX;
uint16_t Arm_posY;
uint16_t Arm_fontsize;
uint16_t Arm_align;
uint16_t BattVolt_en;
uint16_t BattVolt_panel;
uint16_t BattVolt_posX;
uint16_t BattVolt_posY;
uint16_t BattVolt_fontsize;
uint16_t BattVolt_align;
uint16_t BattCurrent_en;
uint16_t BattCurrent_panel;
uint16_t BattCurrent_posX;
uint16_t BattCurrent_posY;
uint16_t BattCurrent_fontsize;
uint16_t BattCurrent_align;
uint16_t BattRemaining_en;
uint16_t BattRemaining_panel;
uint16_t BattRemaining_posX;
uint16_t BattRemaining_posY;
uint16_t BattRemaining_fontsize;
uint16_t BattRemaining_align;
uint16_t FlightMode_en;
uint16_t FlightMode_panel;
uint16_t FlightMode_posX;
uint16_t FlightMode_posY;
uint16_t FlightMode_fontsize;
uint16_t FlightMode_align;
uint16_t GpsStatus_en;
uint16_t GpsStatus_panel;
uint16_t GpsStatus_posX;
uint16_t GpsStatus_posY;
uint16_t GpsStatus_fontsize;
uint16_t GpsStatus_align;
uint16_t GpsHDOP_en;
uint16_t GpsHDOP_panel;
uint16_t GpsHDOP_posX;
uint16_t GpsHDOP_posY;
uint16_t GpsHDOP_fontsize;
uint16_t GpsHDOP_align;
uint16_t GpsLat_en;
uint16_t GpsLat_panel;
uint16_t GpsLat_posX;
uint16_t GpsLat_posY;
uint16_t GpsLat_fontsize;
uint16_t GpsLat_align;
uint16_t GpsLon_en;
uint16_t GpsLon_panel;
uint16_t GpsLon_posX;
uint16_t GpsLon_posY;
uint16_t GpsLon_fontsize;
uint16_t GpsLon_align;
uint16_t Gps2Status_en;
uint16_t Gps2Status_panel;
uint16_t Gps2Status_posX;
uint16_t Gps2Status_posY;
uint16_t Gps2Status_fontsize;
uint16_t Gps2Status_align;
uint16_t Gps2HDOP_en;
uint16_t Gps2HDOP_panel;
uint16_t Gps2HDOP_posX;
uint16_t Gps2HDOP_posY;
uint16_t Gps2HDOP_fontsize;
uint16_t Gps2HDOP_align;
uint16_t Gps2Lat_en;
uint16_t Gps2Lat_panel;
uint16_t Gps2Lat_posX;
uint16_t Gps2Lat_posY;
uint16_t Gps2Lat_fontsize;
uint16_t Gps2Lat_align;
uint16_t Gps2Lon_en;
uint16_t Gps2Lon_panel;
uint16_t Gps2Lon_posX;
uint16_t Gps2Lon_posY;
uint16_t Gps2Lon_fontsize;
uint16_t Gps2Lon_align;
uint16_t Time_en;
uint16_t Time_panel;
uint16_t Time_posX;
uint16_t Time_posY;
uint16_t Time_fontsize;
uint16_t Time_align;
uint16_t TALT_en;
uint16_t TALT_panel;
uint16_t TALT_posX;
uint16_t TALT_posY;
uint16_t TALT_fontsize;
uint16_t TALT_align;
uint16_t Alt_Scale_en;
uint16_t Alt_Scale_panel;
uint16_t Alt_Scale_posX;
uint16_t Alt_Scale_align;
uint16_t Alt_Scale_source;
uint16_t TSPD_en;
uint16_t TSPD_panel;
uint16_t TSPD_posX;
uint16_t TSPD_posY;
uint16_t TSPD_fontsize;
uint16_t TSPD_align;
uint16_t Speed_scale_en;
uint16_t Speed_scale_panel;
uint16_t Speed_scale_posX;
uint16_t Speed_scale_align;
uint16_t Speed_scale_source;
uint16_t Throt_en;
uint16_t Throt_panel;
uint16_t Throt_scale_en;
uint16_t Throt_posX;
uint16_t Throt_posY;
uint16_t CWH_home_dist_en;
uint16_t CWH_home_dist_panel;
uint16_t CWH_home_dist_posX;
uint16_t CWH_home_dist_posY;
uint16_t CWH_home_dist_fontsize;
uint16_t CWH_home_dist_align;
uint16_t CWH_wp_dist_en;
uint16_t CWH_wp_dist_panel;
uint16_t CWH_wp_dist_posX;
uint16_t CWH_wp_dist_posY;
uint16_t CWH_wp_dist_fontsize;
uint16_t CWH_wp_dist_align;
uint16_t CWH_Tmode_en;
uint16_t CWH_Tmode_panel;
uint16_t CWH_Tmode_posY;
uint16_t CWH_Nmode_en;
uint16_t CWH_Nmode_panel;
uint16_t CWH_Nmode_posX;
uint16_t CWH_Nmode_posY;
uint16_t CWH_Nmode_radius;
uint16_t CWH_Nmode_home_radius;
uint16_t CWH_Nmode_wp_radius;
uint16_t Atti_mp_en;
uint16_t Atti_mp_panel;
uint16_t Atti_mp_mode;
uint16_t Atti_3D_en;
uint16_t Atti_3D_panel;
//misc
uint16_t Units_mode;
uint16_t Max_panels;
uint16_t PWM_Video_en;
uint16_t PWM_Video_ch;
uint16_t PWM_Video_value;
uint16_t PWM_Panel_en;
uint16_t PWM_Panel_ch;
uint16_t PWM_Panel_value;
uint16_t Alarm_posX;
uint16_t Alarm_posY;
uint16_t Alarm_fontsize;
uint16_t Alarm_align;
uint16_t Alarm_GPS_status_en;
uint16_t Alarm_low_batt_en;
uint16_t Alarm_low_batt;
uint16_t Alarm_low_speed_en;
uint16_t Alarm_low_speed;
uint16_t Alarm_over_speed_en;
uint16_t Alarm_over_speed;
uint16_t Alarm_low_alt_en;
uint16_t Alarm_low_alt;
uint16_t Alarm_over_alt_en;
uint16_t Alarm_over_alt;
uint16_t Alarm_rc_status_en;
uint16_t Alarm_wfb_status_en;
uint16_t ClimbRate_en;
uint16_t ClimbRate_panel;
uint16_t ClimbRate_posX;
uint16_t ClimbRate_posY;
uint16_t ClimbRate_fontsize;
//uint16_t ClimbRate_align;
uint16_t RSSI_en;
uint16_t RSSI_type;
uint16_t RSSI_panel;
uint16_t RSSI_posX;
uint16_t RSSI_posY;
uint16_t RSSI_fontsize;
uint16_t RSSI_align;
uint16_t RSSI_min;
uint16_t RSSI_max;
uint16_t RSSI_raw_en;
uint16_t FC_Protocol;
uint16_t Wind_en;
uint16_t Wind_panel;
uint16_t Wind_posX;
uint16_t Wind_posY;
uint16_t Time_type;
uint16_t Throttle_Scale_Type;
uint16_t Atti_mp_posX;
uint16_t Atti_mp_posY;
uint16_t Atti_mp_scale_real;
uint16_t Atti_mp_scale_frac;
uint16_t Atti_3D_posX;
uint16_t Atti_3D_posY;
uint16_t Atti_3D_scale_real;
uint16_t Atti_3D_scale_frac;
uint16_t Atti_3D_map_radius;
uint16_t osd_offsetY;
uint16_t osd_offsetX;
/*from firmware version 6*/
uint16_t firmware_ver;
uint16_t video_mode;
/*from firmware version 7*/
uint16_t Speed_scale_posY;
uint16_t Alt_Scale_posY;
uint16_t BattConsumed_en; // total current drawn since startup in amp-hours
uint16_t BattConsumed_panel;
uint16_t BattConsumed_posX;
uint16_t BattConsumed_posY;
uint16_t BattConsumed_fontsize;
uint16_t BattConsumed_align;
uint16_t TotalTripDist_en; // total trip distance since startup, calculated in meter
uint16_t TotalTripDist_panel;
uint16_t TotalTripDist_posX;
uint16_t TotalTripDist_posY;
uint16_t TotalTripDist_fontsize;
uint16_t TotalTripDist_align;
uint16_t Map_en;
uint16_t Map_panel;
uint16_t Map_radius;
uint16_t Map_fontsize;
uint16_t Map_H_align;
uint16_t Map_V_align;
//v1.0.9
uint16_t Relative_ALT_en;
uint16_t Relative_ALT_panel;
uint16_t Relative_ALT_posX;
uint16_t Relative_ALT_posY;
uint16_t Relative_ALT_fontsize;
uint16_t Relative_ALT_align;
uint16_t Alt_Scale_type;
uint16_t Air_Speed_en;
uint16_t Air_Speed_panel;
uint16_t Air_Speed_posX;
uint16_t Air_Speed_posY;
uint16_t Air_Speed_fontsize;
uint16_t Air_Speed_align;
uint16_t Spd_Scale_type;
//v1.1.0
uint16_t osd_offsetX_sign;
uint16_t uart_bandrate;
uint16_t Atti_mp_type;
uint16_t Efficiency_en;
uint16_t Efficiency_panel;
uint16_t Efficiency_posX;
uint16_t Efficiency_posY;
uint16_t Efficiency_fontsize;
uint16_t Efficiency_align;
uint16_t PWM_Video_mode;
uint16_t PWM_Panel_mode;
uint16_t LinkQuality_en;
uint16_t LinkQuality_panel;
uint16_t LinkQuality_posX;
uint16_t LinkQuality_posY;
uint16_t LinkQuality_fontsize;
uint16_t LinkQuality_align;
uint16_t LinkQuality_chan;
uint16_t LinkQuality_min;
uint16_t LinkQuality_max;
uint16_t LinkQuality_type;
uint16_t Vario_Graph_enabled;
uint16_t Vario_Graph_panel;
uint16_t Vario_Graph_posX;
uint16_t Vario_Graph_posY;
uint16_t HomeDirection_enabled;
uint16_t HomeDirection_panel;
uint16_t HomeDirection_posX;
uint16_t HomeDirection_posY;
uint16_t HomeLatitude_enabled;
uint16_t HomeLatitude_panel;
uint16_t HomeLatitude_posX;
uint16_t HomeLatitude_posY;
uint16_t HomeLatitude_fontsize;
uint16_t HomeLatitude_align;
uint16_t HomeLongitude_enabled;
uint16_t HomeLongitude_panel;
uint16_t HomeLongitude_posX;
uint16_t HomeLongitude_posY;
uint16_t HomeLongitude_fontsize;
uint16_t HomeLongitude_align;
uint16_t WFBState_en;
uint16_t WFBState_panel;
uint16_t WFBState_posX;
uint16_t WFBState_posY;
uint16_t WFBState_fontsize;
uint16_t WFBState_align;
uint16_t OSDMessages_en;
uint16_t OSDMessages_panel;
uint16_t OSDMessages_posX;
uint16_t OSDMessages_posY;
} osd_params_t;
extern osd_params_t osd_params;
#endif //__OSD_CONFIG_H