libgs.hardware.RadioBase¶
-
class
libgs.hardware.
RadioBase
[source]¶ Base class for Radio object.
Any radio interface must derive from this class and implement the interface methods:
Additionally you should set the name attribute to something descriptive.
Note
It is best to interface with Radio objects thwough the
range_rate
attribute (which internally calls the abovementioned getters/setters. The reason is that it will properly handle errors)Note
Currently Radio objects are used to set/get the range_rate and get the spectral data only. The
ProtocolBase
class must directly work out its radio interface to perform its send_bytes and recv functions.Methods
get_range_rate
()Return the currently set range_rate get_spectrum
([old])Return the latest spectrum from the radio as well as an associated frequency vecgor record_spectrum
([dt, N, fdec, add_zeroes])Record N spectra then return them. set_range_rate
(range_rate)Set frequency adjustment for a specific range_rate Attributes
err_range_rate_get
Exception during last attempt at getting range rate (None if no exception occurred) err_range_rate_set
Exception during last attempt at setting range rate (None if no exception occurred) name
Getting/setting the radio name. range_rate
Property for getting/setting range_range using the get_range_rate()
/set_range_rate()
methods while also capturing any exception and storing it inerr_range_rate
.Inherited from base class