aboutsummaryrefslogtreecommitdiffstats
path: root/python/receiver
diff options
context:
space:
mode:
authorptrkrysik <ptrkrysik@gmail.com>2014-10-30 08:59:38 +0100
committerptrkrysik <ptrkrysik@gmail.com>2014-10-30 08:59:38 +0100
commit2315c0ab40caa17572d4e28acb4b2946167a5c89 (patch)
treea10cacaf7a9367c4e112ee0d011aa8299b4cfee5 /python/receiver
parentaa7f7b5fe53496e32d8773f770aefbfdc0c175c4 (diff)
changed name of a variable to better reflect it role in clock_offset_control
Diffstat (limited to 'python/receiver')
-rw-r--r--python/receiver/clock_offset_control.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/receiver/clock_offset_control.py b/python/receiver/clock_offset_control.py
index 506b0fd..41c54a0 100644
--- a/python/receiver/clock_offset_control.py
+++ b/python/receiver/clock_offset_control.py
@@ -44,7 +44,7 @@ class clock_offset_control(gr.basic_block):
self.counter = 0
self.last_state = ""
self.timer = Timer(0.5, self.timed_reset)
- self.last_ppm = -1e6
+ self.last_ppm_estimate = -1e6
def process_measurement(self,msg):
if pmt.is_tuple(msg):
@@ -76,10 +76,10 @@ class clock_offset_control(gr.basic_block):
if self.counter == 5:
self.counter = 0
- if abs(self.last_ppm-self.ppm_estimate) > 0.1:
+ if abs(self.last_ppm_estimate-self.ppm_estimate) > 0.1:
msg_ppm = pmt.from_double(ppm)
self.message_port_pub(pmt.intern("ppm"), msg_ppm)
- self.last_ppm = self.ppm_estimate
+ self.last_ppm_estimate = self.ppm_estimate
else:
self.counter=self.counter+1
elif state == "sync_loss":