libgs.groundstation.GSState¶
-
class
libgs.groundstation.
GSState
(callbacks={}, callback_dt={}, pollmap={})[source]¶ Class to hold ground station state variables.
The ground station uses this class to store important state variables, (as its properties). The class does however have the ability to connect callbacks to those properites in order to, for example, update a UI.
Makes use of python properties to ensure the callbacks. It is also possible to assign states to be polled
Parameters: - callbacks (dict) – A dictionary of callbacks to invoke upon setting state variables
- callback_dt (dict) – A dictionary of minimum time intervals between subsequent invokations of the callbacks
- pollmap (dict) – A dictionary of state variables to poll using the designated polling functions (instead of callback)
Methods
Attributes
IDLE
See state
SLEWING
See state
TRACKING
See state
WAITING
See state
cmdpos
List of current commanded positions, in same order as GroundStationBase.rotators
curpos
List of current antenna az,el positions, in same order as GroundStationBase.rotators
last_response
The last received bytes from the satellite libgs_log
The latest utils.Defaults.UI_LOG_LEN
entries in the libgs-log.nid
Currently tracked Norad ID. pdat
Current pass data DataFrame. pdu
Depreacated satpos
Current satellite position schedule
Textual representation of current schedule state
Current tracking state. track_msg
A human readable message about current tracking state uiloghandler
The logging handler that is used for adding log messages to ui Inherited from base class