[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ooops!! Linrad-02.42 replaced by Linrad-02.43



Hi All,

The coherent mode Coh2 does not work in Linrad-02.42 so
I have removed it and replaced it with Linrad-02.43.
(The reason was a high pass filter to remove DC in
AM mode that I added without a check that the selected
mode really is AM. In CW mode it removes the signal 
completely...)

The bug is at line 1313 in mix2.c:
    for(i=0; i<sizhalf; i++)
      {
      am_dclevel1=am_dclevel1*am_dclevel_factor1+z[2*i  ]*am_dclevel_factor2;
      zo[4*i  ]=z[2*i  ]-am_dclevel1;
      zo[4*i+1]=0;
      zo[4*i+2]=z[2*i+1];
      zo[4*i+3]=0;
      }


The corrected code is like this:
    if(rx_mode == MODE_AM)
      {
      for(i=0; i<sizhalf; i++)
        {
        am_dclevel1=am_dclevel1*am_dclevel_factor1+z[2*i  ]*am_dclevel_factor2;
        zo[4*i  ]=z[2*i  ]-am_dclevel1;
        zo[4*i+1]=0;
        zo[4*i+2]=z[2*i+1];
        zo[4*i+3]=0;
        }
      }
    else
      {
      for(i=0; i<sizhalf; i++)
        {
        zo[4*i  ]=z[2*i  ];
        zo[4*i+1]=0;
        zo[4*i+2]=z[2*i+1];
        zo[4*i+3]=0;
        }
      }

There is no other difference except for the version number.

73

Leif / SM5BSZ

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Linrad" group.
To post to this group, send email to linrad@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to linrad-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/linrad
-~----------~----~----~----~------~----~------~--~---

LINRADDARNIL