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
IDLESee stateSLEWINGSee stateTRACKINGSee stateWAITINGSee statecmdposList of current commanded positions, in same order as GroundStationBase.rotatorscurposList of current antenna az,el positions, in same order as GroundStationBase.rotatorslast_responseThe last received bytes from the satellite libgs_logThe latest utils.Defaults.UI_LOG_LENentries in the libgs-log.nidCurrently tracked Norad ID. pdatCurrent pass data DataFrame. pduDepreacated satposCurrent satellite position scheduleTextual representation of current schedule stateCurrent tracking state. track_msgA human readable message about current tracking state uiloghandlerThe logging handler that is used for adding log messages to ui Inherited from base class