forked from SamuelBrucksch/wifibroadcast_osd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osdconfig.h
64 lines (57 loc) · 1.51 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
/** BATTERY **/
//TODO automatically calculate cells based on voltage
#define CELLS 3
#define CELL_MAX 4.20
#define CELL_MIN 3.20
//warning level 1 -> orange
#define CELL_WARNING1 3.50
//warning level 2 -> red, critical
#define CELL_WARNING2 3.40
/** ARTIFICIAL HORIZON **/
//set to 1 or -1
#define INVERT_ROLL 1
#define INVERT_PITCH 1
//uncomment if roll and pitch are exchanged
//#define EXCHANGE_ROLL_AND_PITCH
/** HOME ARROW **/
//uncomment if home arrow is pointing in the wrong direction
//#define INVERT_HOME_ARROW
/** UNITS**/
//uncomment if you want to use imperial units
//#define IMPERIAL
/** DETAILS **/
//set to true if you want to show the ladders
//on raspi 1 it is not recommended to use the ladders as it might reduce performance and cause artefacts in the video due to too much load
#define DRAW_ALT_LADDER true
#define DRAW_SPEED_LADDER true
#define DRAW_COURSE_LADDER true
#define DRAW_AHI_LADDER true
/** OSD ELEMENTS **/
//comment to disable feature
//#define RSSI
#define HEADING
#define HOME_ARROW
#define BATT_REMAINING
#define BATT_STATUS
#define ALT
#define SPEED
#define POSITION
#define HORIZON
#define DISTANCE
#define DRAW_CURRENT
/** PROTOCOL **/
/* FRSKY -> Frsky protocoll
* MAVLINK -> Mavlink protocol (APM/Pixhawk/...)
* GPS -> direct NMEA input
* LTM -> Light Telemetry
*
* Only frsky and LTM is currently working
*/
//#define FRSKY
//#define LTM
//#define MAVLINK
#define ALTIMU10V5
/** RSSI **/
//packet based rssi, uncomment to disable
//TODO not implemented yet
//#define PACKET_BASED_RSSI