PX4 Firmware
PX4 Autopilot Software http://px4.io
symbols.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright (c) 2019 PX4 Development Team. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in
13  * the documentation and/or other materials provided with the
14  * distribution.
15  * 3. Neither the name PX4 nor the names of its contributors may be
16  * used to endorse or promote products derived from this software
17  * without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
26  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30  * POSSIBILITY OF SUCH DAMAGE.
31  *
32  ****************************************************************************/
33 
34 #pragma once
35 
36 /* special symbols (the chip comes preflashed with these) */
37 
38 #define OSD_SYMBOL_RSSI 0x01
39 // Throttle Position (%)
40 #define OSD_SYMBOL_THR 0x04
41 #define OSD_SYMBOL_THR1 0x05
42 // Map mode
43 #define OSD_SYMBOL_HOME 0x04
44 #define OSD_SYMBOL_AIRCRAFT 0x05
45 // Unit Icon (Metric)
46 #define OSD_SYMBOL_M 0x0C
47 // Unit Icon (Imperial)
48 #define OSD_SYMBOL_FT 0x0F
49 // Heading Graphics
50 #define OSD_SYMBOL_HEADING_N 0x18
51 #define OSD_SYMBOL_HEADING_S 0x19
52 #define OSD_SYMBOL_HEADING_E 0x1A
53 #define OSD_SYMBOL_HEADING_W 0x1B
54 #define OSD_SYMBOL_HEADING_DIVIDED_LINE 0x1C
55 #define OSD_SYMBOL_HEADING_LINE 0x1D
56 // Artificial Horizon Center screen Graphics
57 #define OSD_SYMBOL_AH_CENTER_LINE 0x26
58 #define OSD_SYMBOL_AH_CENTER_LINE_RIGHT 0x27
59 #define OSD_SYMBOL_AH_CENTER 0x7E
60 #define OSD_SYMBOL_AH_RIGHT 0x02
61 #define OSD_SYMBOL_AH_LEFT 0x03
62 #define OSD_SYMBOL_AH_DECORATION 0x13
63 // Satellite Graphics
64 #define OSD_SYMBOL_SAT_L 0x1E
65 #define OSD_SYMBOL_SAT_R 0x1F
66 // Direction arrows
67 #define OSD_SYMBOL_ARROW_SOUTH 0x60
68 #define OSD_SYMBOL_ARROW_2 0x61
69 #define OSD_SYMBOL_ARROW_3 0x62
70 #define OSD_SYMBOL_ARROW_4 0x63
71 #define OSD_SYMBOL_ARROW_EAST 0x64
72 #define OSD_SYMBOL_ARROW_6 0x65
73 #define OSD_SYMBOL_ARROW_7 0x66
74 #define OSD_SYMBOL_ARROW_8 0x67
75 #define OSD_SYMBOL_ARROW_NORTH 0x68
76 #define OSD_SYMBOL_ARROW_10 0x69
77 #define OSD_SYMBOL_ARROW_11 0x6A
78 #define OSD_SYMBOL_ARROW_12 0x6B
79 #define OSD_SYMBOL_ARROW_WEST 0x6C
80 #define OSD_SYMBOL_ARROW_14 0x6D
81 #define OSD_SYMBOL_ARROW_15 0x6E
82 #define OSD_SYMBOL_ARROW_16 0x6F
83 // Artifical Horizon Bars
84 #define OSD_SYMBOL_AH_BAR9_0 0x80
85 #define OSD_SYMBOL_AH_BAR9_1 0x81
86 #define OSD_SYMBOL_AH_BAR9_2 0x82
87 #define OSD_SYMBOL_AH_BAR9_3 0x83
88 #define OSD_SYMBOL_AH_BAR9_4 0x84
89 #define OSD_SYMBOL_AH_BAR9_5 0x85
90 #define OSD_SYMBOL_AH_BAR9_6 0x86
91 #define OSD_SYMBOL_AH_BAR9_7 0x87
92 #define OSD_SYMBOL_AH_BAR9_8 0x88
93 // Progress bar
94 #define OSD_SYMBOL_PB_START 0x8A
95 #define OSD_SYMBOL_PB_FULL 0x8B
96 #define OSD_SYMBOL_PB_HALF 0x8C
97 #define OSD_SYMBOL_PB_EMPTY 0x8D
98 #define OSD_SYMBOL_PB_END 0x8E
99 #define OSD_SYMBOL_PB_CLOSE 0x8F
100 // Batt evolution
101 #define OSD_SYMBOL_BATT_FULL 0x90
102 #define OSD_SYMBOL_BATT_5 0x91
103 #define OSD_SYMBOL_BATT_4 0x92
104 #define OSD_SYMBOL_BATT_3 0x93
105 #define OSD_SYMBOL_BATT_2 0x94
106 #define OSD_SYMBOL_BATT_1 0x95
107 #define OSD_SYMBOL_BATT_EMPTY 0x96
108 // Batt Icon
109 #define OSD_SYMBOL_MAIN_BATT 0x97
110 // Voltage and amperage
111 #define OSD_SYMBOL_VOLT 0x06
112 #define OSD_SYMBOL_AMP 0x9A
113 #define OSD_SYMBOL_MAH 0x07
114 #define OSD_SYMBOL_WATT 0x57
115 // Time
116 #define OSD_SYMBOL_ON_M 0x9B
117 #define OSD_SYMBOL_FLY_M 0x9C
118 #define OSD_SYMBOL_FLIGHT_TIME 0x70
119