[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10147 - gnuradio/trunk/gr-radio-astronomy/src/python
From: |
mleech |
Subject: |
[Commit-gnuradio] r10147 - gnuradio/trunk/gr-radio-astronomy/src/python |
Date: |
Sat, 20 Dec 2008 19:11:50 -0700 (MST) |
Author: mleech
Date: 2008-12-20 19:11:49 -0700 (Sat, 20 Dec 2008)
New Revision: 10147
Modified:
gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
Log:
Updated Sunset/Sunrise functions to latest PyEphem API
Modified: gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
===================================================================
--- gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
2008-12-21 00:14:13 UTC (rev 10146)
+++ gnuradio/trunk/gr-radio-astronomy/src/python/usrp_ra_receiver.py
2008-12-21 02:11:49 UTC (rev 10147)
@@ -759,9 +759,11 @@
if (now - self.continuum_then > 20):
self.sun.compute(self.locality)
enow = ephem.now()
+ sunset = self.locality.next_setting(self.sun)
+ sunrise = self.locality.next_rising(self.sun)
sun_insky = "Down"
self.sunstate = "Dn"
- if ((self.sun.rise_time < enow) and (enow <
self.sun.set_time)):
+ if ((sunrise < enow) and (enow < sunset)):
sun_insky = "Up"
self.sunstate = "Up"
self.continuum_then = now
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10147 - gnuradio/trunk/gr-radio-astronomy/src/python,
mleech <=