Skip to content

Commit

Permalink
AP_OSD: add BTFL sidebar symbols
Browse files Browse the repository at this point in the history
Adds the sidebar symbols translation to BTFL fonts, so sidebar is properly displayed in DJI O3 OSD.
  • Loading branch information
rmaia3d authored and tridge committed May 20, 2024
1 parent e07980d commit 07c854d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions libraries/AP_OSD/AP_OSD_MSP_DisplayPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,20 @@ class AP_OSD_MSP_DisplayPort : public AP_OSD_Backend
static const uint8_t SYM_RNGFD = 0x7F;
static const uint8_t SYM_LQ = 0xF8;

static const uint8_t SYM_SIDEBAR_L_ARROW = 0x02;
static const uint8_t SYM_SIDEBAR_R_ARROW = 0x03;
static const uint8_t SYM_SIDEBAR_A = 0x13;
static const uint8_t SYM_SIDEBAR_B = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_C = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_D = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_E = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_F = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_G = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_H = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_I = SYM_SIDEBAR_A;
static const uint8_t SYM_SIDEBAR_J = SYM_SIDEBAR_A;


static constexpr uint8_t symbols[AP_OSD_NUM_SYMBOLS] {
SYM_M,
SYM_KM,
Expand Down Expand Up @@ -226,6 +240,18 @@ class AP_OSD_MSP_DisplayPort : public AP_OSD_Backend
SYM_FENCE_DISABLED,
SYM_RNGFD,
SYM_LQ,
SYM_SIDEBAR_L_ARROW,
SYM_SIDEBAR_R_ARROW,
SYM_SIDEBAR_A,
SYM_SIDEBAR_B,
SYM_SIDEBAR_C,
SYM_SIDEBAR_D,
SYM_SIDEBAR_E,
SYM_SIDEBAR_F,
SYM_SIDEBAR_G,
SYM_SIDEBAR_H,
SYM_SIDEBAR_I,
SYM_SIDEBAR_J,
};

bool _blink_on;
Expand Down

0 comments on commit 07c854d

Please sign in to comment.