mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 21:20:31 -05:00 
			
		
		
		
	DSD demod: allow no squelch time gate
This commit is contained in:
		
							parent
							
								
									cb69b55911
								
							
						
					
					
						commit
						1621b40aff
					
				@ -119,18 +119,25 @@ void DSDDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            if (getMagSq() > m_squelchLevel)
 | 
					            if (getMagSq() > m_squelchLevel)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                if (m_squelchCount < m_squelchGate)
 | 
					                if (m_squelchGate > 0)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    m_squelchCount++;
 | 
					                    if (m_squelchCount < m_squelchGate) {
 | 
				
			||||||
 | 
					                        m_squelchCount++;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    m_squelchOpen = m_squelchCount == m_squelchGate;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    m_squelchOpen = true;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                m_squelchCount = 0;
 | 
					                m_squelchCount = 0;
 | 
				
			||||||
 | 
					                m_squelchOpen = false;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            m_squelchOpen = m_squelchCount == m_squelchGate;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if (m_squelchOpen)
 | 
					            if (m_squelchOpen)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                sample = demod;
 | 
					                sample = demod;
 | 
				
			||||||
 | 
				
			|||||||
@ -522,7 +522,7 @@
 | 
				
			|||||||
         <string>Squelch gate (ms)</string>
 | 
					         <string>Squelch gate (ms)</string>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
        <property name="minimum">
 | 
					        <property name="minimum">
 | 
				
			||||||
         <number>1</number>
 | 
					         <number>0</number>
 | 
				
			||||||
        </property>
 | 
					        </property>
 | 
				
			||||||
        <property name="maximum">
 | 
					        <property name="maximum">
 | 
				
			||||||
         <number>50</number>
 | 
					         <number>50</number>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user