bf_osd_symbols.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /* @file max7456_symbols.h
  2. * @brief max7456 symbols for the mwosd font set
  3. *
  4. * @author Nathan Tsoi nathan@vertile.com
  5. *
  6. * Copyright (C) 2016 Nathan Tsoi
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>
  20. */
  21. #pragma once
  22. //Misc
  23. #define BF_SYM_NONE 0x00
  24. #define BF_SYM_END_OF_FONT 0xFF
  25. #define BF_SYM_BLANK 0x20
  26. #define BF_SYM_HYPHEN 0x2D
  27. #define BF_SYM_BBLOG 0x10
  28. #define BF_SYM_HOMEFLAG 0x11
  29. #define BF_SYM_HOMENEAR 0x05
  30. #define BF_SYM_RPM 0x12
  31. #define BF_SYM_ROLL 0x14
  32. #define BF_SYM_PITCH 0x15
  33. #define BF_SYM_TEMPERATURE 0x7A
  34. #define BF_SYM_MAX 0x24
  35. #define BF_SYM_GLIDESLOPE 0x0B
  36. #define BF_SYM_WAYPOINT 0x7E
  37. // GPS and navigation
  38. #define BF_SYM_LAT 0x89
  39. #define BF_SYM_LON 0x98
  40. #define BF_SYM_ALTITUDE 0x7F
  41. #define BF_SYM_TOTAL_DISTANCE 0x12
  42. #define BF_SYM_OVER_HOME 0x05
  43. // RSSI
  44. #define BF_SYM_RSSI 0x01
  45. #define BF_SYM_LINK_QUALITY 0x7B
  46. // Throttle Position (%)
  47. #define BF_SYM_THR 0x04
  48. // Unit Icons (Metric)
  49. #define BF_SYM_M 0x0C
  50. #define BF_SYM_KM 0x4B
  51. #define BF_SYM_C 0x0E
  52. // Unit Icons (Imperial)
  53. #define BF_SYM_FT 0x0F
  54. #define BF_SYM_MILES 0x0C
  55. #define BF_SYM_NM 0x0C
  56. #define BF_SYM_F 0x0D
  57. #define BF_SYM_KFT 0x4B
  58. // Heading Graphics
  59. #define BF_SYM_HEADING_N 0x18
  60. #define BF_SYM_HEADING_S 0x19
  61. #define BF_SYM_HEADING_E 0x1A
  62. #define BF_SYM_HEADING_W 0x1B
  63. #define BF_SYM_HEADING_DIVIDED_LINE 0x1C
  64. #define BF_SYM_HEADING_LINE 0x1D
  65. #define BF_SYM_HEADING 0x73
  66. // AH Center screen Graphics
  67. #define BF_SYM_AH_CENTER_LINE 0x72
  68. #define BF_SYM_AH_CENTER 0x73
  69. #define BF_SYM_AH_CENTER_LINE_RIGHT 0x74
  70. #define BF_SYM_AH_RIGHT 0x02
  71. #define BF_SYM_AH_LEFT 0x03
  72. #define BF_SYM_AH_DECORATION 0x13
  73. // Satellite Graphics
  74. #define BF_SYM_SAT_L 0x1E
  75. #define BF_SYM_SAT_R 0x1F
  76. // Direction arrows
  77. #define BF_SYM_ARROW_SOUTH 0x60
  78. #define BF_SYM_ARROW_2 0x61
  79. #define BF_SYM_ARROW_3 0x62
  80. #define BF_SYM_ARROW_4 0x63
  81. #define BF_SYM_ARROW_EAST 0x64
  82. #define BF_SYM_ARROW_6 0x65
  83. #define BF_SYM_ARROW_7 0x66
  84. #define BF_SYM_ARROW_8 0x67
  85. #define BF_SYM_ARROW_NORTH 0x68
  86. #define BF_SYM_ARROW_10 0x69
  87. #define BF_SYM_ARROW_11 0x6A
  88. #define BF_SYM_ARROW_12 0x6B
  89. #define BF_SYM_ARROW_WEST 0x6C
  90. #define BF_SYM_ARROW_14 0x6D
  91. #define BF_SYM_ARROW_15 0x6E
  92. #define BF_SYM_ARROW_16 0x6F
  93. #define BF_SYM_ARROW_SMALL_UP 0x75
  94. #define BF_SYM_ARROW_SMALL_DOWN 0x76
  95. #define BF_SYM_VARIO_UP_2A 0x68
  96. #define BF_SYM_VARIO_UP_1A 0x75
  97. #define BF_SYM_VARIO_DOWN_1A 0x76
  98. #define BF_SYM_VARIO_DOWN_2A 0x60
  99. // AH Bars
  100. #define BF_SYM_AH_BAR9_0 0x80
  101. #define BF_SYM_AH_BAR9_1 0x81
  102. #define BF_SYM_AH_BAR9_2 0x82
  103. #define BF_SYM_AH_BAR9_3 0x83
  104. #define BF_SYM_AH_BAR9_4 0x84
  105. #define BF_SYM_AH_BAR9_5 0x85
  106. #define BF_SYM_AH_BAR9_6 0x86
  107. #define BF_SYM_AH_BAR9_7 0x87
  108. #define BF_SYM_AH_BAR9_8 0x88
  109. // Progress bar
  110. #define BF_SYM_PB_START 0x8A
  111. #define BF_SYM_PB_FULL 0x8B
  112. #define BF_SYM_PB_HALF 0x8C
  113. #define BF_SYM_PB_EMPTY 0x8D
  114. #define BF_SYM_PB_END 0x8E
  115. #define BF_SYM_PB_CLOSE 0x8F
  116. // Batt evolution
  117. #define BF_SYM_BATT_FULL 0x90
  118. #define BF_SYM_BATT_5 0x91
  119. #define BF_SYM_BATT_4 0x92
  120. #define BF_SYM_BATT_3 0x93
  121. #define BF_SYM_BATT_2 0x94
  122. #define BF_SYM_BATT_1 0x95
  123. #define BF_SYM_BATT_EMPTY 0x96
  124. // Batt Icons
  125. #define BF_SYM_MAIN_BATT 0x97
  126. // Voltage and amperage
  127. #define BF_SYM_VOLT 0x06
  128. #define BF_SYM_AMP 0x9A
  129. #define BF_SYM_MAH 0x07
  130. #define BF_SYM_WATT 0x57 // 0x57 is 'W'
  131. #define BF_SYM_KILOWATT 0x4B // that's K
  132. #define BF_SYM_MILLIOHM 0x4F
  133. #define BF_SYM_MW 0x4D
  134. // Time
  135. #define BF_SYM_ON_M 0x9B
  136. #define BF_SYM_FLY_M 0x9C
  137. #define BF_SYM_CLOCK 0x40
  138. #define BF_SYM_ON_H 0x70
  139. #define BF_SYM_FLY_H 0x71
  140. // Speed
  141. #define BF_SYM_KPH 0x9E
  142. #define BF_SYM_MPH 0x9D
  143. #define BF_SYM_MPS 0x9F
  144. #define BF_SYM_FTPS 0x99
  145. // Menu cursor
  146. #define BF_SYM_CURSOR BF_SYM_AH_LEFT
  147. // Stick overlays
  148. #define BF_SYM_STICK_OVERLAY_SPRITE_HIGH 0x08
  149. #define BF_SYM_STICK_OVERLAY_SPRITE_MID 0x09
  150. #define BF_SYM_STICK_OVERLAY_SPRITE_LOW 0x0A
  151. #define BF_SYM_STICK_OVERLAY_CENTER 0x0B
  152. #define BF_SYM_STICK_OVERLAY_VERTICAL 0x16
  153. #define BF_SYM_STICK_OVERLAY_HORIZONTAL 0x17
  154. // GPS degree/minute/second symbols
  155. #define BF_SYM_GPS_DEGREE BF_SYM_STICK_OVERLAY_SPRITE_HIGH // kind of looks like the degree symbol
  156. #define BF_SYM_GPS_MINUTE 0x27 // '
  157. #define BF_SYM_GPS_SECOND 0x22 // "