feat(UI): Show antenna RSSI/SNR as 'XX YY' instead of single value for multiple antennas setups - #9
feat(UI): Show antenna RSSI/SNR as 'XX YY' instead of single value for multiple antennas setups#9koriaf wants to merge 1 commit into
Conversation
…r multiple antennas setups
|
Thanks for this — per-antenna visibility is genuinely useful on multi-antenna ground setups, and gating it behind 1. The struct you extended is transmitted over the radio, not just shared memory
// r_central/process_router_messages.cpp:1398
if ( pPH->total_length == (sizeof(t_packet_header) + 2*sizeof(u8) + sizeof(shared_mem_radio_stats_radio_interface)) )Two Since the OSD only reads 2. SNR is computed without checking the noise value is validIn aAntennaSNR[iAntennaValidCount] = iAntDBM - g_SM_RadioStats.radio_interfaces[i].signalInfo.iAntennaDBMNoise[k];Only the dBm side is range-checked. if ( iAntennaDBMNoise[i] < 500 )
int iSNR = iAntennaDBM[i] - iAntennaDBMNoise[i];That guard matters on Realtek 8812 cards: the driver never reports the radiotap antenna-noise field, so Minor
Everything else checks out — buffers are comfortably sized ( Happy to push the two fixes myself if you'd rather not — just say the word. |
this feature must be enabled by creating a file as shown in the code, default behavior - no changes
doc_2026-08-04_08-27-40.mp4
@PetruSoroaga FYI