mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Add OSD displayPort device configurability
This commit is contained in:
parent
e821fec341
commit
8494d6e634
5 changed files with 52 additions and 8 deletions
|
@ -222,6 +222,13 @@ typedef enum {
|
|||
OSD_WARNING_COUNT // MUST BE LAST
|
||||
} osdWarningsFlags_e;
|
||||
|
||||
typedef enum {
|
||||
OSD_DISPLAYPORT_DEVICE_NONE = 0,
|
||||
OSD_DISPLAYPORT_DEVICE_AUTO,
|
||||
OSD_DISPLAYPORT_DEVICE_MAX7456,
|
||||
OSD_DISPLAYPORT_DEVICE_MSP,
|
||||
} osdDisplayPortDevice_e;
|
||||
|
||||
// Make sure the number of warnings do not exceed the available 32bit storage
|
||||
STATIC_ASSERT(OSD_WARNING_COUNT <= 32, osdwarnings_overflow);
|
||||
|
||||
|
@ -254,14 +261,15 @@ typedef struct osdConfig_s {
|
|||
int16_t esc_rpm_alarm;
|
||||
int16_t esc_current_alarm;
|
||||
uint8_t core_temp_alarm;
|
||||
uint8_t ahInvert; // invert the artificial horizon
|
||||
uint8_t ahInvert; // invert the artificial horizon
|
||||
uint8_t osdProfileIndex;
|
||||
uint8_t overlay_radio_mode;
|
||||
char profile[OSD_PROFILE_COUNT][OSD_PROFILE_NAME_LENGTH + 1];
|
||||
uint16_t link_quality_alarm;
|
||||
uint8_t rssi_dbm_alarm;
|
||||
uint8_t gps_sats_show_hdop;
|
||||
int8_t rcChannels[OSD_RCCHANNELS_COUNT]; // RC channel values to display, -1 if none
|
||||
int8_t rcChannels[OSD_RCCHANNELS_COUNT]; // RC channel values to display, -1 if none
|
||||
uint8_t displayPortDevice; // osdDisplayPortDevice_e
|
||||
} osdConfig_t;
|
||||
|
||||
PG_DECLARE(osdConfig_t, osdConfig);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue