File: 0001-Commit-noise-fix-to-1.3.1-tag.patch

package info (click to toggle)
freedv 1.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,440 kB
  • sloc: cpp: 8,723; ansic: 3,564; python: 42; makefile: 10; sh: 7
file content (89 lines) | stat: -rw-r--r-- 3,227 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
From 6167bd3b212abefe43e5adf8bd948595e241d6fa Mon Sep 17 00:00:00 2001
From: hobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Date: Sun, 10 Jun 2018 14:08:48 +0000
Subject: [PATCH] Commit noise fix to 1.3.1 tag.

git-svn-id: https://svn.code.sf.net/p/freetel/code/freedv@3675 01035d8c-6547-0410-b346-abe4f91aad63
---
 README.txt          |  5 ++++-
 USER_MANUAL.txt     | 11 ++++++++---
 src/fdmdv2_main.cpp |  5 +++--
 3 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/README.txt b/README.txt
index b13f33e..5664bcf 100644
--- a/README.txt
+++ b/README.txt
@@ -200,5 +200,8 @@ welcome!
 [ ] break fdmdv2_main.cpp into smaller files
 [ ] rename src files from fdmdv2_ -> freedv_
 [ ] profile code and explore optimisations
-
+[ ] The FreeDV waterfall doesn't pick up fast fading as well as
+    some other SDRS, would be good to review the code and
+    adjust
+    
 
diff --git a/USER_MANUAL.txt b/USER_MANUAL.txt
index 705bab9..d102c83 100644
--- a/USER_MANUAL.txt
+++ b/USER_MANUAL.txt
@@ -99,10 +99,14 @@ Tools - Options:
      seconds, it will send a "rx sync" UDP message to a Port on your
      machine (localhost).  An external program or script listening on
      this port can then take some action, for example send "spotting"
-     information to a web server or send an email your phone.  On
-     Linux you can test reception of messages using netcat:
+     information to a web server or send an email your phone.
 
-     $ nc -ul 3000
+     Enable UDP messages on Tools-Options, and test using the "Test"
+     button.
+     
+     On Linux you can test reception of messages using netcat:
+
+       $ nc -ul 3000
      
      An sample script to email you on FreeDV sync:
 
@@ -111,6 +115,7 @@ Tools - Options:
      Usage for Gmail:
 
        $ python send_email_on_sync.py --listen_port 3000 --smtp_server smtp.gmail.com --smtp_port 587 your@gmail.com your_pass
+
      
 Changing COM Port On Windows, May 2018
 ---------------------------------------
diff --git a/src/fdmdv2_main.cpp b/src/fdmdv2_main.cpp
index 1e61cf0..484e4ee 100644
--- a/src/fdmdv2_main.cpp
+++ b/src/fdmdv2_main.cpp
@@ -529,7 +529,7 @@ MainFrame::MainFrame(wxString plugInName, wxWindow *parent) : TopFrame(plugInNam
     wxGetApp().m_FreeDV700ManualUnSync = (float)pConfig->Read(wxT("/FreeDV700/manualUnSync"), f);
 
     wxGetApp().m_noise_snr = (float)pConfig->Read(wxT("/Noise/noise_snr"), 2);
- 
+    
     wxGetApp().m_debug_console = (float)pConfig->Read(wxT("/Debug/console"), f);
 
     wxGetApp().m_attn_carrier_en = 0;
@@ -631,6 +631,7 @@ MainFrame::MainFrame(wxString plugInName, wxWindow *parent) : TopFrame(plugInNam
     g_test_frame_sync_state = 0;
     g_resyncs = 0;
     wxGetApp().m_testFrames = false;
+    wxGetApp().m_channel_noise = false;
     g_tone_phase = 0.0;
 
     g_modal = false;
@@ -1187,7 +1188,7 @@ void MainFrame::OnTimer(wxTimerEvent &evt)
         }
         freedv_set_test_frames(g_pfreedv, wxGetApp().m_testFrames);
         freedv_set_test_frames_diversity(g_pfreedv, wxGetApp().m_FreeDV700Combine);
-        g_channel_noise =  wxGetApp().m_channel_noise;
+        g_channel_noise = wxGetApp().m_channel_noise;
 
         // update stats on main page
 
-- 
2.11.0