mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	DSD demod: YSF: support radio ID mode
This commit is contained in:
		
							parent
							
								
									a6ba22aeb7
								
							
						
					
					
						commit
						fc8a09276b
					
				@ -543,6 +543,7 @@ void DSDDemodGUI::formatStatusText()
 | 
				
			|||||||
    	{
 | 
					    	{
 | 
				
			||||||
            sprintf(m_formatStatusText, "%d ", (int) m_dsdDemod->getDecoder().getYSFDecoder().getFICHError());
 | 
					            sprintf(m_formatStatusText, "%d ", (int) m_dsdDemod->getDecoder().getYSFDecoder().getFICHError());
 | 
				
			||||||
    	}
 | 
					    	}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        sprintf(&m_formatStatusText[2], "%s %s %d:%d %c%c",
 | 
					        sprintf(&m_formatStatusText[2], "%s %s %d:%d %c%c",
 | 
				
			||||||
    			m_ysfDataTypeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getDataType()],
 | 
					    			m_ysfDataTypeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getDataType()],
 | 
				
			||||||
				m_ysfCallModeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getCallMode()],
 | 
									m_ysfCallModeText[(int) m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getCallMode()],
 | 
				
			||||||
@ -550,6 +551,7 @@ void DSDDemodGUI::formatStatusText()
 | 
				
			|||||||
				m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getFrameTotal(),
 | 
									m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getFrameTotal(),
 | 
				
			||||||
				(m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isNarrowMode() ? 'N' : 'W'),
 | 
									(m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isNarrowMode() ? 'N' : 'W'),
 | 
				
			||||||
				(m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isInternetPath() ? 'I' : 'L'));
 | 
									(m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isInternetPath() ? 'I' : 'L'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isSquelchCodeEnabled())
 | 
					        if (m_dsdDemod->getDecoder().getYSFDecoder().getFICH().isSquelchCodeEnabled())
 | 
				
			||||||
    	{
 | 
					    	{
 | 
				
			||||||
            sprintf(&m_formatStatusText[14], "%03d", m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getSquelchCode());
 | 
					            sprintf(&m_formatStatusText[14], "%03d", m_dsdDemod->getDecoder().getYSFDecoder().getFICH().getSquelchCode());
 | 
				
			||||||
@ -558,12 +560,27 @@ void DSDDemodGUI::formatStatusText()
 | 
				
			|||||||
    	{
 | 
					    	{
 | 
				
			||||||
            strcpy(&m_formatStatusText[14], "---");
 | 
					            strcpy(&m_formatStatusText[14], "---");
 | 
				
			||||||
    	}
 | 
					    	}
 | 
				
			||||||
        sprintf(&m_formatStatusText[17], "|%-10s>%-10s |%-10s>%-10s|%-5s",
 | 
					
 | 
				
			||||||
 | 
					        char dest[11];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if ( m_dsdDemod->getDecoder().getYSFDecoder().radioIdMode())
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            sprintf(dest, "%-5s:%-5s",
 | 
				
			||||||
 | 
					                    m_dsdDemod->getDecoder().getYSFDecoder().getDestId(),
 | 
				
			||||||
 | 
					                    m_dsdDemod->getDecoder().getYSFDecoder().getSrcId());
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            sprintf(dest, "%-10s", m_dsdDemod->getDecoder().getYSFDecoder().getDest());
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        sprintf(&m_formatStatusText[17], "|%-10s>%s|%-10s>%-10s|%-5s",
 | 
				
			||||||
                m_dsdDemod->getDecoder().getYSFDecoder().getSrc(),
 | 
					                m_dsdDemod->getDecoder().getYSFDecoder().getSrc(),
 | 
				
			||||||
                m_dsdDemod->getDecoder().getYSFDecoder().getDest(),
 | 
					                dest,
 | 
				
			||||||
                m_dsdDemod->getDecoder().getYSFDecoder().getUplink(),
 | 
					                m_dsdDemod->getDecoder().getYSFDecoder().getUplink(),
 | 
				
			||||||
                m_dsdDemod->getDecoder().getYSFDecoder().getDownlink(),
 | 
					                m_dsdDemod->getDecoder().getYSFDecoder().getDownlink(),
 | 
				
			||||||
                m_dsdDemod->getDecoder().getYSFDecoder().getRem4());
 | 
					                m_dsdDemod->getDecoder().getYSFDecoder().getRem4());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        m_signalFormat = signalFormatYSF;
 | 
					        m_signalFormat = signalFormatYSF;
 | 
				
			||||||
    	break;
 | 
					    	break;
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user