libSDRForge
Loading...
Searching...
No Matches
sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler Class Reference

Schedule NOAA and TMC listening windows without controlling hardware. More...

Public Member Functions

None __init__ (self, AuxiliaryScheduleConfig config)
 Provide init behavior.
TuneDecision tick (self, float now)
 Provide tick behavior.
None hold_for_alert (self, float now, float duration_seconds)
 Hold NOAA tuning while an alert is being received.
None clear_alert_hold (self)
 Provide clear alert hold behavior.

Public Attributes

 config = config

Protected Member Functions

TuneDecision _decision (self, bool changed, str reason)

Protected Attributes

 _mode = AuxiliaryMode.WEATHER
 _frequency = config.weather_frequency_hz
float|None _entered_at = None
float|None _last_now = None
int _tmc_index = 0
float|None _alert_until = None

Detailed Description

Schedule NOAA and TMC listening windows without controlling hardware.

Constructor & Destructor Documentation

◆ __init__()

None sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler.__init__ ( self,
AuxiliaryScheduleConfig config )

Provide init behavior.

Parameters
selfThe current instance.
configThe config value.

Member Function Documentation

◆ _decision()

TuneDecision sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler._decision ( self,
bool changed,
str reason )
protected

◆ clear_alert_hold()

None sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler.clear_alert_hold ( self)

Provide clear alert hold behavior.

Parameters
selfThe current instance.

◆ hold_for_alert()

None sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler.hold_for_alert ( self,
float now,
float duration_seconds )

Hold NOAA tuning while an alert is being received.

Parameters
selfThe current instance.
nowThe now value.
duration_secondsThe duration seconds value.

◆ tick()

TuneDecision sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler.tick ( self,
float now )

Provide tick behavior.

Parameters
selfThe current instance.
nowThe now value.
Returns
The operation result.

Member Data Documentation

◆ _alert_until

float | None sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler._alert_until = None
protected

◆ _entered_at

float | None sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler._entered_at = None
protected

◆ _frequency

sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler._frequency = config.weather_frequency_hz
protected

◆ _last_now

float | None sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler._last_now = None
protected

◆ _mode

sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler._mode = AuxiliaryMode.WEATHER
protected

◆ _tmc_index

int sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler._tmc_index = 0
protected

◆ config

sdrforge.weather.auxiliary_scheduler.AuxiliaryReceiverScheduler.config = config

The documentation for this class was generated from the following file: