mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Added RSNR to the OSD (#11062)
* Added RNSR to the OSD * filtering with pt1 * update pgconfig ver * rssi_smoothness and proper define wrapping * missing define wrap * smoothing moved to updateRSSI * minor comment update * fixed rx tests Co-authored-by: Tony Cabello <> Co-authored-by: J Blackman <blckmn@users.noreply.github.com>
This commit is contained in:
parent
b197d1d6bd
commit
22c5bf4eb3
17 changed files with 215 additions and 64 deletions
|
@ -1384,6 +1384,13 @@ static void osdElementRssiDbm(osdElementParms_t *element)
|
|||
}
|
||||
#endif // USE_RX_RSSI_DBM
|
||||
|
||||
#ifdef USE_RX_RSNR
|
||||
static void osdElementRsnr(osdElementParms_t *element)
|
||||
{
|
||||
tfp_sprintf(element->buff, "%c%3d", SYM_RSSI, getRsnr());
|
||||
}
|
||||
#endif // USE_RX_RSNR
|
||||
|
||||
#ifdef USE_OSD_STICK_OVERLAY
|
||||
static void osdBackgroundStickOverlay(osdElementParms_t *element)
|
||||
{
|
||||
|
@ -1598,6 +1605,9 @@ static const uint8_t osdElementDisplayOrder[] = {
|
|||
#ifdef USE_RX_RSSI_DBM
|
||||
OSD_RSSI_DBM_VALUE,
|
||||
#endif
|
||||
#ifdef USE_RX_RSNR
|
||||
OSD_RSNR_VALUE,
|
||||
#endif
|
||||
#ifdef USE_OSD_STICK_OVERLAY
|
||||
OSD_STICK_OVERLAY_LEFT,
|
||||
OSD_STICK_OVERLAY_RIGHT,
|
||||
|
@ -1724,6 +1734,9 @@ const osdElementDrawFn osdElementDrawFunction[OSD_ITEM_COUNT] = {
|
|||
#endif
|
||||
#ifdef USE_RX_RSSI_DBM
|
||||
[OSD_RSSI_DBM_VALUE] = osdElementRssiDbm,
|
||||
#endif
|
||||
#ifdef USE_RX_RSNR
|
||||
[OSD_RSNR_VALUE] = osdElementRsnr,
|
||||
#endif
|
||||
[OSD_RC_CHANNELS] = osdElementRcChannels,
|
||||
#ifdef USE_GPS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue