system package

Subpackages

Submodules

system.logmessaged module

system.logmessaged.main() NoReturn[source]

system.micd module

class system.micd.Mic[source]

Bases: object

callback(indata, frames, time, status)[source]

Using amplitude measurements, calculate an uncalibrated sound pressure and sound pressure level. Then apply A-weighting to the raw amplitudes and run the same calculations again.

Logged A-weighted equivalents are rough approximations of the human-perceived loudness.

get_stream(sd)[source]
micd_thread()[source]
update()[source]
system.micd.apply_a_weighting(measurements: ndarray) ndarray[source]
system.micd.calculate_spl(measurements)[source]
system.micd.main()[source]

system.timed module

system.timed.main() NoReturn[source]

timed has two responsibilities: - getting the current time - getting the current timezone

GPS directly gives time, and timezone is looked up from GPS position. AGNOS will also use NTP to update the time.

system.timed.set_time(new_time)[source]
system.timed.set_timezone(timezone)[source]

system.ugpsd module

class system.ugpsd.Unicore[source]

Bases: object

recv()[source]
send(cmd)[source]
system.ugpsd.build_msg(state)[source]
NMEA sentences:

https://campar.in.tum.de/twiki/pub/Chair/NaviGpsDemon/nmea.html#RMC

NAV messages:

https://www.unicorecomm.com/assets/upload/file/UFirebird_Standard_Positioning_Products_Protocol_Specification_CH.pdf

system.ugpsd.checksum(s: str)[source]
system.ugpsd.main()[source]
system.ugpsd.setup(u)[source]
system.ugpsd.sfloat(n: str)[source]

system.version module

class system.version.BuildMetadata(channel: str, openpilot: system.version.OpenpilotMetadata)[source]

Bases: object

property canonical: str
channel: str
openpilot: OpenpilotMetadata
property release_channel: bool
property tested_channel: bool
property ui_description: str
class system.version.OpenpilotMetadata(version: str, release_notes: str, git_commit: str, git_origin: str, git_commit_date: str, build_style: str, is_dirty: bool)[source]

Bases: object

build_style: str
property comma_remote: bool
git_commit: str
git_commit_date: str
property git_normalized_origin: str
git_origin: str
is_dirty: bool
release_notes: str
property short_version: str
version: str
system.version.build_metadata_from_dict(build_metadata: dict) BuildMetadata[source]
system.version.get_build_metadata(path: str = '/tmp/openpilot') BuildMetadata[source]
system.version.get_release_notes(path: str = '/tmp/openpilot') str[source]
system.version.get_version(path: str = '/tmp/openpilot') str[source]
system.version.is_dirty(cwd: str = '/tmp/openpilot') bool[source]
system.version.is_prebuilt(path: str = '/tmp/openpilot') bool[source]

Module contents