OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
apps.launchers.adsb_launcher.ADSBLauncher Class Reference

Launch a configured ADS-B data source and tar1090 dashboard. More...

Inheritance diagram for apps.launchers.adsb_launcher.ADSBLauncher:
ui.system.app_launcher_if.AppLauncherIf

Public Member Functions

bool is_running (self)
 Return whether the application is currently running.
None assert_available (self)
 Reject ADS-B when another component owns the shared receiver.
None set_preferred_color_scheme (self, str scheme)
 Apply ORC's preferred light/dark scheme to Chromium and tar1090.
None launch (self, str remote_display, StatusCallback set_status=None, *, bool manage_receiver=True)
 Open the ADS-B dashboard.
None stop (self, str remote_display, StatusCallback set_status=None, *, bool manage_receiver=True)
 Close the ADS-B dashboard.
bool toggle (self, str remote_display, StatusCallback set_status=None)
 Toggle the application's running state.

Detailed Description

Launch a configured ADS-B data source and tar1090 dashboard.

rtlsdr is the Raspberry Pi/Linux hardware path. It acquires the shared SDR resource, coordinates access to shared RF hardware, and starts readsb only while the ADS-B application owns the receiver. simulation is the hardware-independent path used by Termux presentation testing.

Member Function Documentation

◆ is_running()

bool apps.launchers.adsb_launcher.ADSBLauncher.is_running ( self)

Return whether the application is currently running.

Returns
True when the application is running, otherwise False.

Reimplemented from ui.system.app_launcher_if.AppLauncherIf.

◆ launch()

None apps.launchers.adsb_launcher.ADSBLauncher.launch ( self,
str remote_display,
StatusCallback set_status = None,
* ,
bool manage_receiver = True )

Open the ADS-B dashboard.

Parameters
remote_displayDisplay used for the dashboard.
set_statusOptional status callback.
manage_receiverWhether this launcher also starts the receiver.

Reimplemented from ui.system.app_launcher_if.AppLauncherIf.

◆ stop()

None apps.launchers.adsb_launcher.ADSBLauncher.stop ( self,
str remote_display,
StatusCallback set_status = None,
* ,
bool manage_receiver = True )

Close the ADS-B dashboard.

Parameters
remote_displayDisplay used for the dashboard.
set_statusOptional status callback.
manage_receiverWhether this launcher also stops the receiver.

Reimplemented from ui.system.app_launcher_if.AppLauncherIf.

◆ toggle()

bool apps.launchers.adsb_launcher.ADSBLauncher.toggle ( self,
str remote_display,
StatusCallback set_status = None )

Toggle the application's running state.

Parameters
remote_displayDisplay identifier used for the application presentation.
set_statusOptional callback used to report launcher status text.
Returns
True when the application is running after the toggle, otherwise False.

Reimplemented from ui.system.app_launcher_if.AppLauncherIf.


The documentation for this class was generated from the following file:
  • apps/launchers/adsb_launcher.py