selfdrive package

Subpackages

Submodules

selfdrive.rtshield module

selfdrive.rtshield.main() NoReturn[source]

selfdrive.sentry module

Install exception handler for process crash.

class selfdrive.sentry.SentryProject(value)[source]

Bases: Enum

An enumeration.

SELFDRIVE = 'https://6f3c7076c1e14b2aa10f5dde6dda0cc4@o33823.ingest.sentry.io/77924'
SELFDRIVE_NATIVE = 'https://3e4b586ed21a4479ad5d85083b639bc6@o33823.ingest.sentry.io/157615'
selfdrive.sentry.capture_exception(*args, **kwargs) None[source]
selfdrive.sentry.init(project: SentryProject) None[source]
selfdrive.sentry.report_tombstone(fn: str, message: str, contents: str) None[source]
selfdrive.sentry.set_tag(key: str, value: str) None[source]

selfdrive.statsd module

class selfdrive.statsd.METRIC_TYPE[source]

Bases: object

GAUGE = 'g'
SAMPLE = 'sa'
class selfdrive.statsd.StatLog[source]

Bases: object

connect() None[source]
gauge(name: str, value: float) None[source]
sample(name: str, value: float)[source]
selfdrive.statsd.main() NoReturn[source]

selfdrive.tombstoned module

selfdrive.tombstoned.clear_apport_folder()[source]
selfdrive.tombstoned.get_apport_stacktrace(fn)[source]
selfdrive.tombstoned.get_tombstones()[source]

Returns list of (filename, ctime) for all tombstones in /data/tombstones and apport crashlogs in /var/crash

selfdrive.tombstoned.main() NoReturn[source]
selfdrive.tombstoned.report_tombstone_apport(fn)[source]
selfdrive.tombstoned.safe_fn(s)[source]

selfdrive.updated module

class selfdrive.updated.Updater[source]

Bases: object

check_for_update() None[source]
fetch_update() None[source]
get_branch(path: str) str[source]
get_commit_hash(path: str = '/data/safe_staging/merged') str[source]
property has_internet: bool
set_params(failed_count: int, exception: Optional[str]) None[source]
property target_branch: str
property update_available: bool
property update_ready: bool
class selfdrive.updated.WaitTimeHelper[source]

Bases: object

check_now(signum: int, frame) None[source]
sleep(t: float) None[source]
update_now(signum: int, frame) None[source]
selfdrive.updated.dismount_overlay() None[source]
selfdrive.updated.finalize_update() None[source]

Take the current OverlayFS merged view and finalize a copy outside of OverlayFS, ready to be swapped-in at BASEDIR. Copy using shutil.copytree

selfdrive.updated.handle_agnos_update() None[source]
selfdrive.updated.init_overlay() None[source]
selfdrive.updated.main() None[source]
selfdrive.updated.parse_release_notes(basedir: str) bytes[source]
selfdrive.updated.run(cmd: List[str], cwd: Optional[str] = None) str[source]
selfdrive.updated.set_consistent_flag(consistent: bool) None[source]
selfdrive.updated.setup_git_options(cwd: str) None[source]

Module contents