[pskmail] Re: Robust psk-modes on raspberry pi

  • From: Franco Spinelli <frspin@xxxxxxxxx>
  • To: pskmail <pskmail@xxxxxxxxxxxxx>
  • Date: Tue, 19 Nov 2013 13:02:12 +0100

2013/11/19 John Douyere <vk2eta@xxxxxxxxx>

> Tarmo,
>
> The following patch fixes the bug. It exists also in X86 architectures but
> it resolves differently and works regardless!
>
> In psk.cxx, in the subroutine rx_symbol(...), replace the line:
>
>                softbit = (unsigned char) ((softangle / (1 + softamp)) -
> 127);
> by:
>
>                softbit = (unsigned char) ((softangle / (1 + softamp)) +
> 127);
>
> It has worked for others.
>
>
>
Is this the correction to apply to source of Fldigi or is as indicated by
David and committed to git:

softbit = round(softangle / softamp + 128);

Are both working? And which of proposed patch is better?

Regards

Franco Spinelli
IW2DHW

Other related posts: